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:
Jack 2025-02-17 10:19:51 -05:00 committed by GitHub
parent 3e3dd2a653
commit 1d595a6e6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}