diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 07:13:38 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 07:13:38 +0100 |
commit | cbe5b4ab6e6eb7bf1b2655c57d9e9f32e275e21f (patch) | |
tree | 1f3e10c862893ffd84945197e89db03a670d74db /main | |
parent | 18e85caba16438e1b5b44d86fd31021b336be73f (diff) |
cb
Diffstat (limited to 'main')
-rw-r--r-- | main/draw.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |