diff options
Diffstat (limited to 'Gfx.cpp')
| -rw-r--r-- | Gfx.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
@@ -53,7 +53,7 @@ void GfxShowKeyboard(char* str, uint8_t length) void GfxClearScreen(void) { - //gb.display.fillScreen(GFX_WHITE); + gb.display.fillScreen(GFX_WHITE); gb.display.clear(); } @@ -214,23 +214,3 @@ void GfxFillRectangle(uint8_t x, uint8_t y, uint8_t w, uint8_t h, int8_t color) gb.display.setColor(orig_color); } } - -void GfxShowResources(TYPE_RESOURCES* ptrResources) -{ - char str[8]; - - gb.display.setColor(GFX_WHITE); - gb.display.fillRect(0, 0, X_SCREEN_RESOLUTION, 5); - - snprintf(str, 8, "W=%d", ptrResources->Wood); - - GfxPrintTextFont(str, font3x3, 4, 1); - - snprintf(str, 8, "G=%d", ptrResources->Gold); - - GfxPrintTextFont(str, font3x3, 24, 1); - - snprintf(str, 8, "F=%d", ptrResources->Food); - - GfxPrintTextFont(str, font3x3, 48, 1); -} |
