ref: cb6cead7a905eeb00b861f45e6f2c3f0cc60105d
parent: efbb2e3a31b16d34e060de633c5083c662a9ddac
author: Simon Tatham <[email protected]>
date: Sat Jan 8 09:27:07 EST 2022
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.
--- a/windows.c
+++ b/windows.c
@@ -91,8 +91,8 @@
WriteFile(debug_hdl, buf, strlen(buf), &dw, NULL);
}
if (debug_fp) {
- fputs(buf, debug_fp);
- fflush(debug_fp);
+ fputs(buf, debug_fp);
+ fflush(debug_fp);
}*/
OutputDebugString(buf);
}
@@ -2376,9 +2376,9 @@
midend_size(fe->me, &x, &y, false);
if (scale != 1.0) {
- x = (int)((float)x * fe->puzz_scale);
- y = (int)((float)y * fe->puzz_scale);
- midend_size(fe->me, &x, &y, true);
+ x = (int)((float)x * fe->puzz_scale);
+ y = (int)((float)y * fe->puzz_scale);
+ midend_size(fe->me, &x, &y, true);
}
fe->ymin = (fe->xmin * y) / x;
@@ -2431,13 +2431,13 @@
ydiff = (proposed->bottom - proposed->top) - (wr.bottom - wr.top);
if (isedge) {
- /* These next four lines work around the fact that midend_size
- * is happy to shrink _but not grow_ if you change one dimension
- * but not the other. */
- if (xdiff > 0 && ydiff == 0)
- ydiff = (xdiff * (wr.right - wr.left)) / (wr.bottom - wr.top);
- if (xdiff == 0 && ydiff > 0)
- xdiff = (ydiff * (wr.bottom - wr.top)) / (wr.right - wr.left);
+ /* These next four lines work around the fact that midend_size
+ * is happy to shrink _but not grow_ if you change one dimension
+ * but not the other. */
+ if (xdiff > 0 && ydiff == 0)
+ ydiff = (xdiff * (wr.right - wr.left)) / (wr.bottom - wr.top);
+ if (xdiff == 0 && ydiff > 0)
+ xdiff = (ydiff * (wr.bottom - wr.top)) / (wr.right - wr.left);
}
if (check_window_resize(fe,