hedgewars/uWorld.pas
changeset 9485 3dee8a3b0406
parent 9481 fbf61ef67c7b
child 9521 8054d9d775fd
child 9557 a5005b7ca305
--- a/hedgewars/uWorld.pas	Mon Sep 30 22:46:48 2013 +0400
+++ b/hedgewars/uWorld.pas	Thu Oct 03 12:10:30 2013 -0400
@@ -1258,22 +1258,22 @@
     glTranslatef(WorldDx, WorldDy, 0);
     glColorPointer(4, GL_UNSIGNED_BYTE, 0, @WorldFade[0]);
 
-    VertexBuffer[0].X:= leftX-120;
+    VertexBuffer[0].X:= leftX-20;
     VertexBuffer[0].Y:= -3000;
-    VertexBuffer[1].X:= leftX-120;
+    VertexBuffer[1].X:= leftX-20;
     VertexBuffer[1].Y:= cWaterLine+cVisibleWater;
-    VertexBuffer[2].X:= leftX-70;
+    VertexBuffer[2].X:= leftX+30;
     VertexBuffer[2].Y:= cWaterLine+cVisibleWater;
-    VertexBuffer[3].X:= leftX-70;
+    VertexBuffer[3].X:= leftX+30;
     VertexBuffer[3].Y:= -3000;
 
     glVertexPointer(2, GL_FLOAT, 0, @VertexBuffer[0]);
     glDrawArrays(GL_TRIANGLE_FAN, 0, Length(VertexBuffer));
 
-    VertexBuffer[0].X:= rightX+120;
-    VertexBuffer[1].X:= rightX+120;
-    VertexBuffer[2].X:= rightX+70;
-    VertexBuffer[3].X:= rightX+70;
+    VertexBuffer[0].X:= rightX+20;
+    VertexBuffer[1].X:= rightX+20;
+    VertexBuffer[2].X:= rightX-30;
+    VertexBuffer[3].X:= rightX-30;
 
     glVertexPointer(2, GL_FLOAT, 0, @VertexBuffer[0]);
     glDrawArrays(GL_TRIANGLE_FAN, 0, Length(VertexBuffer));
@@ -1282,16 +1282,16 @@
 
     VertexBuffer[0].X:= -5000;
     VertexBuffer[1].X:= -5000;
-    VertexBuffer[2].X:= leftX-120;
-    VertexBuffer[3].X:= leftX-120;
+    VertexBuffer[2].X:= leftX-20;
+    VertexBuffer[3].X:= leftX-20;
 
     glVertexPointer(2, GL_FLOAT, 0, @VertexBuffer[0]);
     glDrawArrays(GL_TRIANGLE_FAN, 0, Length(VertexBuffer));
 
     VertexBuffer[0].X:= rightX+5000;
     VertexBuffer[1].X:= rightX+5000;
-    VertexBuffer[2].X:= rightX+120;
-    VertexBuffer[3].X:= rightX+120;
+    VertexBuffer[2].X:= rightX+20;
+    VertexBuffer[3].X:= rightX+20;
 
     glVertexPointer(2, GL_FLOAT, 0, @VertexBuffer[0]);
     glDrawArrays(GL_TRIANGLE_FAN, 0, Length(VertexBuffer));
@@ -1303,8 +1303,8 @@
     glColor4ub($FF, $FF, $FF, $FF); // must not be Tint() as color array seems to stay active and color reset is required
     glEnable(GL_TEXTURE_2D);
 
-    DrawLine(leftX-100, -3000, leftX-100, cWaterLine+cVisibleWater, 3.0, $FF, $00, $FF, $FF);
-    DrawLine(rightX+100, -3000, rightX+100, cWaterLine+cVisibleWater, 3.0, $FF, $00, $FF, $FF);
+    DrawLine(leftX, -3000, leftX, cWaterLine+cVisibleWater, 3.0, $FF, $00, $FF, $FF);
+    DrawLine(rightX, -3000, rightX, cWaterLine+cVisibleWater, 3.0, $FF, $00, $FF, $FF);
     end;
 
 // this scale is used to keep the various widgets at the same dimension at all zoom levels