mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
whoops
This commit is contained in:
@@ -118,9 +118,9 @@ void draw_board(Cudoku *game, Size window_size) {
|
||||
if (!game->board[i][j].value) {
|
||||
continue;
|
||||
}
|
||||
Sizef text_size = calculate_text_size("7", 72.f);
|
||||
char num[2];
|
||||
snprintf(num, sizeof(num), "%d", game->board[i][j].value);
|
||||
Sizef text_size = calculate_text_size(num, 72.f);
|
||||
set_y_constraint(&constraints, i * 100 + cell_size.height / 2.f - text_size.height / 2.f, UI_CONSTRAINT_FIXED);
|
||||
set_x_constraint(&constraints, j * 100 + cell_size.width / 2.f - text_size.width / 2.f, UI_CONSTRAINT_FIXED);
|
||||
draw_text(num, 72.f, constraints, &color, ALIGN_TOP_LEFT);
|
||||
|
||||
Reference in New Issue
Block a user