X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=39f479822b30a51bd5d81619db7e192caf7f46f2;hp=16d7d61c73bda9248731d3c2e83040d6a6dc8b72;hb=dc10681f0cac355f8b3a7197e058d9e50471181b;hpb=1a42b957eef32c0dac550054b9de7814a9fa0f8d diff --git a/src/editor.c b/src/editor.c index 16d7d61c..39f47982 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11928,13 +11928,13 @@ static void HandleDrawingAreas(struct GadgetInfo *gi) /* also correct MM wall-sized (double) drawing area positions accordingly */ if (sx2 / 2 < sx || sx2 / 2 > sx) { - sx2 = sx * 2; dx = (sx2 / 2 < sx ? 0 : 1); + sx2 = sx * 2 + dx; } if (sy2 / 2 < sy || sy2 / 2 > sy) { - sy2 = sy * 2; dy = (sy2 / 2 < sy ? 0 : 1); + sy2 = sy * 2 + dy; } if (button_release_event)