mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Fix eyedropper on tilemaps when zoom != 100%
This commit is contained in:
parent
fead20a7b5
commit
04ffea04ee
@ -1242,7 +1242,8 @@ void Render::renderCel(
|
||||
if (!tileset)
|
||||
return;
|
||||
|
||||
gfx::Rect tilesToDraw = grid.canvasToTile(gfx::Rect(area.src, area.size));
|
||||
gfx::Rect tilesToDraw = grid.canvasToTile(
|
||||
m_proj.remove(gfx::Rect(area.src, area.size)));
|
||||
tilesToDraw &= cel_image->bounds();
|
||||
TRACE_RENDER_CEL("Drawing tilemap (%d %d %d %d)\n",
|
||||
tilesToDraw.x, tilesToDraw.y, tilesToDraw.w, tilesToDraw.h);
|
||||
|
Loading…
Reference in New Issue
Block a user