From 9199502c622d0363a0651c5fdd59cb391ca1ecd9 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 15 Mar 2025 16:16:58 -0500 Subject: [PATCH] Fix flickering 1px black bar at bottom of 1.5x window --- src/game/boe.graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/boe.graphics.cpp b/src/game/boe.graphics.cpp index d9f289a4..dc7e71a7 100644 --- a/src/game/boe.graphics.cpp +++ b/src/game/boe.graphics.cpp @@ -171,7 +171,7 @@ void adjust_window_mode() { hideMenuBar(); double ui_scale = get_ui_scale(); if(ui_scale < 0.1) ui_scale = 1.0; - float width = boe_width * ui_scale, height = boe_height * ui_scale; + int width = boe_width * ui_scale, height = boe_height * ui_scale; // TODO: Make display_mode an enum // 0 - center 1- ul 2 - ur 3 - dl 4 - dr 5 - small win