mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-24 16:45:21 +02:00
Don't dump lores atlas if in hires mode
The lores atlas is empty in this scenario.
This commit is contained in:
parent
a15e4aff14
commit
1ed5101d6f
1 changed files with 4 additions and 1 deletions
|
@ -202,11 +202,14 @@ struct TilemapVXPrivate : public ViewportElement, TileAtlasVX::Reader
|
|||
if (shState->config().dumpAtlas)
|
||||
{
|
||||
Bitmap dump(atlas);
|
||||
dump.saveToFile("dumped_atlas.png");
|
||||
if (dump.hasHires())
|
||||
{
|
||||
dump.getHires()->saveToFile("dumped_atlas_hires.png");
|
||||
}
|
||||
else
|
||||
{
|
||||
dump.saveToFile("dumped_atlas.png");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue