Fixed a bug in drawer dc
This commit is contained in:
parent
d633f9751d
commit
393300cea7
@ -64,6 +64,8 @@ void Drawer::composeBoard(const TLVec& layout, const Dimensions& gridSize) {
|
||||
drawTile(dc, c, fromGrid(x, y), z);
|
||||
}
|
||||
|
||||
dc.SelectObject(wxNullBitmap);
|
||||
|
||||
wxMask* mask = new wxMask(boardBitmap, wxColor(0x00, 0x00, 0x00));
|
||||
boardBitmap.SetMask(mask);
|
||||
}
|
||||
@ -131,7 +133,6 @@ bool Drawer::resizeBoard(const TLVec& layout, const Dimensions& gridSize) {
|
||||
|
||||
wxLogDebug(wxString::Format("Resize board: %i", gridPoint));
|
||||
|
||||
if (gridPoint >= MIN_GRID_POINT) {
|
||||
if (gridPoint != prevGridPoint) {
|
||||
tablePixelRect.SetSize({gridPoint * TILE_WIDTH * gridSize.x,
|
||||
gridPoint * TILE_HEIGHT * gridSize.y});
|
||||
@ -149,7 +150,6 @@ bool Drawer::resizeBoard(const TLVec& layout, const Dimensions& gridSize) {
|
||||
}
|
||||
|
||||
prevGridPoint = gridPoint;
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user