Prepare for display orientation part 1 (#2661)

This commit is contained in:
Totoo 2025-05-22 17:24:53 +02:00 committed by GitHub
parent 6f6d863a14
commit a1d7cf2b86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
85 changed files with 405 additions and 334 deletions

View file

@ -209,9 +209,9 @@ void StartGame() {
cls();
background(Black);
foreground(White);
fillrect(0, 0, 162, 320, Black);
rect(162, 0, 164, 320, White);
fillrect(164, 0, 240, 320, Black);
fillrect(0, 0, 162, screen_height, Black);
rect(162, 0, 164, screen_height, White);
fillrect(164, 0, screen_width, screen_height, Black);
ShowScore();
ShowNextFigure();
}
@ -483,7 +483,7 @@ void UpdateBoard() {
board[i - numberOfLines][j] = 0;
}
}
fillrect(0, 0, 162, 320, Black);
fillrect(0, 0, 162, screen_height, Black);
for (int i = 0; i < 20; i++) {
for (int j = 0; j < 10; j++) {
if (board[i][j] != 0) {