Skip to content

Commit 6a554a3

Browse files
committed
v2.1.4 (#6) ping pong game GFX library bug for esp devices fixed
fillEllipse was hanging on ESP32-S3 and ESP32 in ping pong game menus
1 parent 48f5c18 commit 6a554a3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/apps/games/pingpong.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ void fillBorders(void) {
1414
tft.fillRect(5, 0, 315, 5, 0xDC5B);
1515
tft.fillRect(5, 225, 315, 5, 0xDC5B);
1616
tft.fillRect(315, 5, 5, 220, 0xF602);
17-
tft.drawEllipse(160, 113, 42, 42, 0xE0C4);
17+
18+
tft.drawCircle(160, 113, 42, 0xE0C4);
1819
tft.drawLine(159, 5, 159, 70, 0xE0C4);
1920
tft.drawLine(159, 155, 159, 224, 0xE0C4);
2021
}
@@ -23,7 +24,7 @@ void fillBorders(void) {
2324
void drawLoseMenu(int score) {
2425
tft.fillScreen(0x0);
2526

26-
tft.fillEllipse(6, 80, 35, 35, 0xFFFF);
27+
tft.fillCircle(6, 80, 35, 0xFFFF);
2728
tft.drawLine(34, 52, 167, 36, 0xE987);
2829
tft.drawLine(43, 66, 181, 59, 0xF685);
2930
tft.drawLine(46, 79, 196, 80, 0xE521);
@@ -63,7 +64,7 @@ void drawMenu() {
6364
tft.setCursor(84, 33);
6465
tft.println("Ping Pong");
6566
draw_polygon_4();
66-
tft.fillEllipse(199, 86, 35, 35, 0xFFFF);
67+
tft.fillCircle(199, 86, 35, 0xFFFF);
6768
tft.setTextColor(0xFF8D);
6869
tft.setCursor(91, 187);
6970
tft.println("W for up");

0 commit comments

Comments
 (0)