mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-21 09:32:01 +00:00
fix drive indicators on startup; fix overlay for 9341
This commit is contained in:
parent
16d84320ba
commit
1b43f1182e
@ -6,9 +6,9 @@
|
||||
|
||||
AppleUI::AppleUI()
|
||||
{
|
||||
redrawFrame = false;
|
||||
redrawDriveLatches = false;
|
||||
redrawDriveActivity = false;
|
||||
redrawFrame = true;
|
||||
redrawDriveLatches = true;
|
||||
redrawDriveActivity = true;
|
||||
driveInserted[0] = driveInserted[1] = 0;
|
||||
driveActivity[0] = driveActivity[1] = 0;
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ SDLDisplay::SDLDisplay()
|
||||
{
|
||||
memset(videoBuffer, 0, sizeof(videoBuffer));
|
||||
|
||||
driveIndicator[0] = driveIndicator[1] = false;
|
||||
driveIndicator[0] = driveIndicator[1] = true; // assume on so they will redraw the first time
|
||||
|
||||
shellImage = NULL;
|
||||
d1OpenImage = d1ClosedImage = d2OpenImage = d2ClosedImage = NULL;
|
||||
|
@ -45,7 +45,7 @@ const uint16_t loresPixelColors[16] = { 0x0000, // 0 black
|
||||
|
||||
TeensyDisplay::TeensyDisplay()
|
||||
{
|
||||
driveIndicator[0] = driveIndicator[1] = false;
|
||||
driveIndicator[0] = driveIndicator[1] = true; // assume on so they will redraw immediately the first time
|
||||
|
||||
shellImage = NULL;
|
||||
d1OpenImage = d1ClosedImage = d2OpenImage = d2ClosedImage = NULL;
|
||||
@ -212,8 +212,12 @@ void TeensyDisplay::blit()
|
||||
static uint32_t nextMessageTime = 0;
|
||||
if (millis() >= nextMessageTime) {
|
||||
if (overlayMessage[0]) {
|
||||
if (use8875) {
|
||||
/// FIXME This position needs updating for each display differently
|
||||
// drawString(M_SELECTDISABLED, 1, (RA8875_HEIGHT - 18)/2, overlayMessage); // FIXME this /2 is clunky b/c drawString winds up doubling
|
||||
} else {
|
||||
drawString(M_SELECTDISABLED, 1, ILI9341_HEIGHT - (16+12), overlayMessage);
|
||||
}
|
||||
}
|
||||
nextMessageTime = millis() + 1000;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user