From cbe5b4ab6e6eb7bf1b2655c57d9e9f32e275e21f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 11 Dec 2023 07:13:38 +0100 Subject: cb --- main/draw.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main') diff --git a/main/draw.cpp b/main/draw.cpp index d74d9f38..98fd861e 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -109,6 +109,8 @@ auto main_impl::get_draw_bounds() const noexcept -> draw_bounds y0 = std::min(y0, p.y); y1 = std::max(y1, p.y); } + // todo test this with the default viewport size using --magnum-dpi-scaling=1 + x0 -= 1; y0 -= 1; x1 += 1; y1 += 1; constexpr int16_t mx = tile_shader::max_screen_tiles.x()/(int16_t)2, my = tile_shader::max_screen_tiles.y()/(int16_t)2; -- cgit v1.2.3