From 58c006f61f95f62b1f63e967994a048e820b21de Mon Sep 17 00:00:00 2001 From: mothbeanie Date: Sun, 19 Nov 2023 15:54:25 -0800 Subject: [PATCH] decrease map cursor margin on smaller map sizes --- desktop_version/src/Render.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index e2515ef4..7c6ca1ce 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -2622,7 +2622,13 @@ static void rendermapcursor(const bool flashing) if (!flashing || ((map.cursorstate == 2 && int(map.cursordelay / 15) % 2 == 0) || game.noflashingmode)) { - graphics.draw_rect(40 + ((game.roomx - 100) * 12 * data.zoom) + 2 + data.xoff, 21 + ((game.roomy - 100) * 9 * data.zoom) + 2 + data.yoff, (12 * data.zoom) - 4, (9 * data.zoom) - 4, 16, 245 - (help.glow), 245 - (help.glow)); + int margin = (data.zoom == 4) ? 2 : 1; + graphics.draw_rect( + 40 + ((game.roomx - 100) * 12 * data.zoom) + margin + data.xoff, + 21 + ((game.roomy - 100) * 9 * data.zoom) + margin + data.yoff, + (12 * data.zoom) - (2 * margin), (9 * data.zoom) - (2 * margin), + 16, 245 - (help.glow), 245 - (help.glow) + ); } else if (map.cursorstate == 1 && int(map.cursordelay / 4) % 2 == 0) {