We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df3661d commit 7e76f54Copy full SHA for 7e76f54
2 files changed
tilecanvas.cpp
@@ -92,10 +92,10 @@ void TileCanvas::Redraw()
92
image.setColorTable(project.tileset.tiles[tile_id].colorTable());
93
94
//Check if an update is necessary
95
- if (image == last_image)
+ if (image == last_image && scaling == last_scaling)
96
return;
97
else
98
- last_image= image;
+ last_image= image, last_scaling= scaling;
99
100
scene.clear();
101
QPixmap pix;
tilecanvas.h
@@ -67,6 +67,7 @@ class TileCanvas : public AbstractCanvas
67
QBrush brush;
68
QPen pen;
69
int scaling= 20;
70
+ int last_scaling= scaling;
71
Qt::MouseButton mouse_down_button= Qt::NoButton;
72
bool mouse_has_moved= false;
73
QPointF mouse_last_pos;
0 commit comments