mirror of
https://github.com/szymon-jozef/checkers.git
synced 2026-10-27 19:20:44 +01:00
fix: board not scaling
This commit is contained in:
@@ -3,7 +3,7 @@ use std::{
|
|||||||
slice::IterMut,
|
slice::IterMut,
|
||||||
};
|
};
|
||||||
|
|
||||||
use log::info;
|
use log::{debug, info};
|
||||||
use macroquad::{
|
use macroquad::{
|
||||||
color::{BLACK, Color, GREEN, ORANGE, RED, WHITE},
|
color::{BLACK, Color, GREEN, ORANGE, RED, WHITE},
|
||||||
input::{is_mouse_button_pressed, mouse_position},
|
input::{is_mouse_button_pressed, mouse_position},
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ impl GameClient {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if self.board.update_board_rect(self.board_area) {
|
if self.board.update_board_rect(self.board_area) {
|
||||||
self.board.update_dimensions();
|
self.board.repopulate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user