Browse Source

Fixed grid lines drawing over title bar

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

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

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

Loading…
Cancel
Save