mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Fix tiled_mode.h
Fix for tile_mode.h so the main tile position lines up with where the SHIFT + pencil line feature draws from
This commit is contained in:
parent
3e3dd2a653
commit
1d595a6e6f
@ -41,12 +41,12 @@ public:
|
||||
gfx::Point mainTilePosition() const
|
||||
{
|
||||
gfx::Point pt(0, 0);
|
||||
if (int(m_mode) & int(filters::TiledMode::X_AXIS)) {
|
||||
pt.x += m_canvas->width();
|
||||
}
|
||||
if (int(m_mode) & int(filters::TiledMode::Y_AXIS)) {
|
||||
pt.y += m_canvas->height();
|
||||
}
|
||||
//if (int(m_mode) & int(filters::TiledMode::X_AXIS)) {
|
||||
//pt.x += m_canvas->width();
|
||||
//}
|
||||
//if (int(m_mode) & int(filters::TiledMode::Y_AXIS)) {
|
||||
//pt.y += m_canvas->height();
|
||||
//}
|
||||
return pt;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user