Skip to content

Commit

Permalink
Ide, LayDes: Fixed grid paiting issue - now it is rendered on whole l…
Browse files Browse the repository at this point in the history
…ayout area.

git-svn-id: svn://ultimatepp.org/upp/trunk@15992 f0d560ea-af0d-0410-9eb7-867de7ffcac7
  • Loading branch information
klugier committed Jun 13, 2021
1 parent 8e581f3 commit 8b1e67b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions uppsrc/ide/LayDes/laydes.cpp
Expand Up @@ -237,8 +237,8 @@ void LayDes::Paint(Draw& w)
if(setting.paintgrid) {
int gx = minmax((int)~setting.gridx, 1, 32);
int gy = minmax((int)~setting.gridy, 1, 32);
for(int x = 0; x < l.size.cx; x += gx)
for(int y = 0; y < l.size.cy; y += gy)
for(int x = 0; x < lsz.cx; x += gx)
for(int y = 0; y < lsz.cy; y += gy)
w.DrawRect(x, y, 1, 1, SColorPaper);
}
DrawFrame(w, -1, -1, lsz.cx + 2, lsz.cy + 2, SColorText);
Expand Down Expand Up @@ -286,7 +286,6 @@ void LayDes::Paint(Draw& w)
if(HasCapture() && draghandle == 14)
DrawFrame(w, dragrect.Normalized(), LtRed);
w.End();
w.End();
}

void LayDes::SaveState()
Expand Down

0 comments on commit 8b1e67b

Please sign in to comment.