mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
windows.c: fix some mis-indented pieces of code.
I happened to run across one of these on my way somewhere else and thought I'd fix it in passing.
This commit is contained in:
24
windows.c
24
windows.c
@ -91,8 +91,8 @@ void dputs(char *buf)
|
|||||||
WriteFile(debug_hdl, buf, strlen(buf), &dw, NULL);
|
WriteFile(debug_hdl, buf, strlen(buf), &dw, NULL);
|
||||||
}
|
}
|
||||||
if (debug_fp) {
|
if (debug_fp) {
|
||||||
fputs(buf, debug_fp);
|
fputs(buf, debug_fp);
|
||||||
fflush(debug_fp);
|
fflush(debug_fp);
|
||||||
}*/
|
}*/
|
||||||
OutputDebugString(buf);
|
OutputDebugString(buf);
|
||||||
}
|
}
|
||||||
@ -2376,9 +2376,9 @@ static void new_game_size(frontend *fe, float scale)
|
|||||||
midend_size(fe->me, &x, &y, false);
|
midend_size(fe->me, &x, &y, false);
|
||||||
|
|
||||||
if (scale != 1.0) {
|
if (scale != 1.0) {
|
||||||
x = (int)((float)x * fe->puzz_scale);
|
x = (int)((float)x * fe->puzz_scale);
|
||||||
y = (int)((float)y * fe->puzz_scale);
|
y = (int)((float)y * fe->puzz_scale);
|
||||||
midend_size(fe->me, &x, &y, true);
|
midend_size(fe->me, &x, &y, true);
|
||||||
}
|
}
|
||||||
fe->ymin = (fe->xmin * y) / x;
|
fe->ymin = (fe->xmin * y) / x;
|
||||||
|
|
||||||
@ -2431,13 +2431,13 @@ static void adjust_game_size(frontend *fe, RECT *proposed, bool isedge,
|
|||||||
ydiff = (proposed->bottom - proposed->top) - (wr.bottom - wr.top);
|
ydiff = (proposed->bottom - proposed->top) - (wr.bottom - wr.top);
|
||||||
|
|
||||||
if (isedge) {
|
if (isedge) {
|
||||||
/* These next four lines work around the fact that midend_size
|
/* These next four lines work around the fact that midend_size
|
||||||
* is happy to shrink _but not grow_ if you change one dimension
|
* is happy to shrink _but not grow_ if you change one dimension
|
||||||
* but not the other. */
|
* but not the other. */
|
||||||
if (xdiff > 0 && ydiff == 0)
|
if (xdiff > 0 && ydiff == 0)
|
||||||
ydiff = (xdiff * (wr.right - wr.left)) / (wr.bottom - wr.top);
|
ydiff = (xdiff * (wr.right - wr.left)) / (wr.bottom - wr.top);
|
||||||
if (xdiff == 0 && ydiff > 0)
|
if (xdiff == 0 && ydiff > 0)
|
||||||
xdiff = (ydiff * (wr.bottom - wr.top)) / (wr.right - wr.left);
|
xdiff = (ydiff * (wr.bottom - wr.top)) / (wr.right - wr.left);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_window_resize(fe,
|
if (check_window_resize(fe,
|
||||||
|
Reference in New Issue
Block a user