Browse Source

Fixed grid lines drawing over title bar

master
chrisgregan 10 years ago
parent
commit
cf43832402
  1. 5
      Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs

5
Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs

@ -304,10 +304,13 @@ namespace Fungus
x += gridSize; x += gridSize;
} }
float y = fungusScript.scrollPos.y % gridSize; float y = (fungusScript.scrollPos.y % gridSize);
while (y < height) while (y < height)
{
if (y >= 0)
{ {
GLDraw.DrawLine(new Vector2(0, y), new Vector2(width, y), color, 1f); GLDraw.DrawLine(new Vector2(0, y), new Vector2(width, y), color, 1f);
}
y += gridSize; y += gridSize;
} }
} }

Loading…
Cancel
Save