diff options
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; |
