From 1e9f7568adc442d247d656b112c76420773a378a Mon Sep 17 00:00:00 2001 From: malc Date: Tue, 15 Jun 2010 15:54:46 +0400 Subject: [PATCH] Ugly hack for NVidia drivers Truth be told they (NVidia) might be right and i'm not --- apc.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apc.ml b/apc.ml index a907d4d..a27313a 100644 --- a/apc.ml +++ b/apc.ml @@ -949,6 +949,7 @@ struct for i = 0 to V.sgrid do let x = if i = 0 then 0.0009 else float i *. gscale in + let x = if i = V.sgrid then x -. 0.0009 else x in GlDraw.vertex ~x ~y:0.0 (); GlDraw.vertex ~x ~y:1.0 (); done; @@ -975,7 +976,8 @@ struct for i = 0 to lim do let y = (i * V.pgrid |> float) /. 100.0 in - let y = if i = lim then y -. 0.0009 else y in + let y = if i = lim then y else y in + let y = if i = 0 then 0.0009 else y in GlDraw.vertex ~x:0.0 ~y (); GlDraw.vertex ~x:1.0 ~y (); done; -- 2.11.4.GIT