From 18fa352ab4b761ca1823b6e7f0cc207cec4ea86f Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Wed, 8 Jul 2020 17:59:20 -0400 Subject: [PATCH] fix bios drawing --- bios.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bios.cpp b/bios.cpp index a663399..c7ef5b6 100644 --- a/bios.cpp +++ b/bios.cpp @@ -93,12 +93,12 @@ void BIOS::DrawMenuBar() for (int i=0; idrawPixel(xpos+x, 0, 0xFFFF); - g_display->drawPixel(xpos+x, 16, 0xFFFF); + g_display->drawUIPixel(xpos+x, 0, 0xFFFF); + g_display->drawUIPixel(xpos+x, 16, 0xFFFF); } for (int y=0; y<=16; y++) { - g_display->drawPixel(xpos, y, 0xFFFF); - g_display->drawPixel(xpos + titleWidths[i] + 2*XPADDING, y, 0xFFFF); + g_display->drawUIPixel(xpos, y, 0xFFFF); + g_display->drawUIPixel(xpos + titleWidths[i] + 2*XPADDING, y, 0xFFFF); } xpos += XPADDING; @@ -577,7 +577,7 @@ void BIOS::DrawHardwareMenu() uint16_t volCutoff = 300.0 * (float)((float) g_volume / 15.0); for (uint8_t y=234; y<=235; y++) { for (uint16_t x = 0; x< 300; x++) { - g_display->drawPixel( x, y, x <= volCutoff ? 0xFFFF : 0x0010 ); + g_display->drawUIPixel( x, y, x <= volCutoff ? 0xFFFF : 0x0010 ); } } }