rosalina: fix screen flickering regression
This commit is contained in:
parent
12ed3ae65f
commit
57c4d022ab
@ -329,10 +329,6 @@ static void menuDraw(Menu *menu, u32 selected)
|
|||||||
dispY += SPACING_Y;
|
dispY += SPACING_Y;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear lines that are prone to change
|
|
||||||
Draw_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - SPACING_X * 15, 10, COLOR_WHITE, "%15s", "");
|
|
||||||
Draw_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - SPACING_X * 19, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, "%19s", "");
|
|
||||||
|
|
||||||
if(miniSocEnabled)
|
if(miniSocEnabled)
|
||||||
{
|
{
|
||||||
char ipBuffer[17];
|
char ipBuffer[17];
|
||||||
@ -341,6 +337,8 @@ static void menuDraw(Menu *menu, u32 selected)
|
|||||||
int n = sprintf(ipBuffer, "%hhu.%hhu.%hhu.%hhu", addr[0], addr[1], addr[2], addr[3]);
|
int n = sprintf(ipBuffer, "%hhu.%hhu.%hhu.%hhu", addr[0], addr[1], addr[2], addr[3]);
|
||||||
Draw_DrawString(SCREEN_BOT_WIDTH - 10 - SPACING_X * n, 10, COLOR_WHITE, ipBuffer);
|
Draw_DrawString(SCREEN_BOT_WIDTH - 10 - SPACING_X * n, 10, COLOR_WHITE, ipBuffer);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
Draw_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - SPACING_X * 15, 10, COLOR_WHITE, "%15s", "");
|
||||||
|
|
||||||
if(R_SUCCEEDED(mcuInfoRes))
|
if(R_SUCCEEDED(mcuInfoRes))
|
||||||
{
|
{
|
||||||
@ -351,12 +349,14 @@ static void menuDraw(Menu *menu, u32 selected)
|
|||||||
|
|
||||||
char buf[32];
|
char buf[32];
|
||||||
int n = sprintf(
|
int n = sprintf(
|
||||||
buf, "%hhu\xF8""C %lu.%02luV %lu.%lu%%", batteryTemperature, // CP437
|
buf, "%02hhu\xF8""C %lu.%02luV %lu.%lu%%", batteryTemperature, // CP437
|
||||||
voltageInt, voltageFrac,
|
voltageInt, voltageFrac,
|
||||||
percentageInt, percentageFrac
|
percentageInt, percentageFrac
|
||||||
);
|
);
|
||||||
Draw_DrawString(SCREEN_BOT_WIDTH - 10 - SPACING_X * n, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, buf);
|
Draw_DrawString(SCREEN_BOT_WIDTH - 10 - SPACING_X * n, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, buf);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
Draw_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - SPACING_X * 19, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, "%19s", "");
|
||||||
|
|
||||||
if(isRelease)
|
if(isRelease)
|
||||||
Draw_DrawFormattedString(10, SCREEN_BOT_HEIGHT - 20, COLOR_TITLE, "Luma3DS %s", versionString);
|
Draw_DrawFormattedString(10, SCREEN_BOT_HEIGHT - 20, COLOR_TITLE, "Luma3DS %s", versionString);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user