mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-03 02:37:39 +00:00
Improve UI
This commit is contained in:
parent
834387d7b2
commit
5aea044961
4 changed files with 914 additions and 124 deletions
|
@ -47,7 +47,7 @@ void BoardCanvas::OnPaint(wxPaintEvent &event) {
|
|||
// Setting up required attributes
|
||||
REFRESH_MOUSE_LOCATION();
|
||||
square_width = t->GetSquaresSizes();
|
||||
canvas_size = dc.GetSize();
|
||||
canvas_size = this->GetSize();
|
||||
boardX = (canvas_size.x - (8 * square_width)) / 2;
|
||||
boardY = (canvas_size.y - (8 * square_width)) / 2;
|
||||
if (boardX > canvas_size.x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue