Display 'R' on oled for readonly write protected images

This commit is contained in:
penfold42 2018-07-30 17:41:52 +10:00
parent d26147d93c
commit 0cba9ca8f7

View file

@ -292,7 +292,11 @@ void DiskCaddy::ShowSelectedImage(u32 index)
x = 0; x = 0;
y = 0; y = 0;
snprintf(buffer, 256, " D %d/%d ", index + 1, numberOfImages); snprintf(buffer, 256, " D %d/%d %c "
, index + 1
, numberOfImages
, GetImage(index)->GetReadOnly() ? 'R' : ' '
);
screenLCD->PrintText(false, x, y, buffer, RGBA(0xff, 0xff, 0xff, 0xff), RGBA(0xff, 0xff, 0xff, 0xff)); screenLCD->PrintText(false, x, y, buffer, RGBA(0xff, 0xff, 0xff, 0xff), RGBA(0xff, 0xff, 0xff, 0xff));
y += LCDFONTHEIGHT; y += LCDFONTHEIGHT;