OLED Emulator - dont highlight entire row

This commit is contained in:
penfold42 2018-08-03 16:46:14 +10:00
parent 98961a9421
commit 550677cc93

View file

@ -318,6 +318,9 @@ void DiskCaddy::ShowSelectedImage(u32 index)
const char* name = image->GetName(); const char* name = image->GetName();
if (name) if (name)
{ {
// snprintf(buffer, 256, " ");
memset(buffer, 'Z', screenLCD->Width()/screenLCD->GetFontWidth());
screenLCD->PrintText(false, x, y, buffer, BkColour, BkColour);
snprintf(buffer, 256, "%d %s", caddyIndex + 1, name); snprintf(buffer, 256, "%d %s", caddyIndex + 1, name);
screenLCD->PrintText(false, x, y, buffer, RGBA(0xff, 0xff, 0xff, 0xff), caddyIndex == index ? RGBA(0xff, 0xff, 0xff, 0xff) : BkColour); screenLCD->PrintText(false, x, y, buffer, RGBA(0xff, 0xff, 0xff, 0xff), caddyIndex == index ? RGBA(0xff, 0xff, 0xff, 0xff) : BkColour);
y += LCDFONTHEIGHT; y += LCDFONTHEIGHT;