mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-04 18:45:05 +01:00
Optimization Changes Part 2:
A few corrections to the changes in part 1: *clock fix *progressbar fix for language update *GX DrawDone() changed
This commit is contained in:
parent
3c6bf6523b
commit
0c7ac826c3
File diff suppressed because one or more lines are too long
@ -746,7 +746,6 @@ void FreeTypeGX::copyTextureToFramebuffer(GXTexObj *texObj, f32 texWidth, f32 te
|
||||
GX_Color4u8(color.r, color.g, color.b, color.a);
|
||||
GX_TexCoord2f32(0.0f, 1.0f);
|
||||
GX_End();
|
||||
GX_DrawDone();
|
||||
|
||||
this->setDefaultMode();
|
||||
}
|
||||
@ -780,7 +779,6 @@ void FreeTypeGX::copyFeatureToFramebuffer(f32 featureWidth, f32 featureHeight, i
|
||||
GX_Position2s16(screenX, featureHeight + screenY);
|
||||
GX_Color4u8(color.r, color.g, color.b, color.a);
|
||||
GX_End();
|
||||
GX_DrawDone();
|
||||
|
||||
this->setDefaultMode();
|
||||
}
|
||||
|
@ -93,6 +93,7 @@ enum
|
||||
|
||||
enum
|
||||
{
|
||||
NONE,
|
||||
WRAP,
|
||||
LONGTEXT,
|
||||
DOTTED,
|
||||
|
@ -329,6 +329,7 @@ int MenuDiscList() {
|
||||
int dataed = -1;
|
||||
int cosa=0,sina=0;
|
||||
int selectImg1 = 0;
|
||||
bool firstRun = true;
|
||||
char ID[4];
|
||||
char IDfull[7];
|
||||
u32 covert = 0;
|
||||
@ -892,8 +893,10 @@ int MenuDiscList() {
|
||||
}
|
||||
|
||||
//CLOCK update every 10 secs
|
||||
if(frameCount % (60*10))
|
||||
if(frameCount % 600 == 0 || firstRun)
|
||||
{
|
||||
firstRun = false;
|
||||
|
||||
time_t rawtime = time(0); //this fixes code dump caused by the clock
|
||||
if (((Settings.hddinfo == hr12)||(Settings.hddinfo == hr24)) && rawtime != lastrawtime) {
|
||||
lastrawtime = rawtime;
|
||||
|
@ -386,6 +386,7 @@ void ShowProgress(const char *title, const char *msg1, char *dynmsg2, f32 done,
|
||||
|
||||
showProgress = 1;
|
||||
progressDone = 100.0*done/total;
|
||||
changed = true;
|
||||
|
||||
LWP_ResumeThread(progressthread);
|
||||
}
|
||||
|
@ -218,12 +218,12 @@ void StopGX() {
|
||||
* Renders everything current sent to GX, and flushes video
|
||||
***************************************************************************/
|
||||
void Menu_Render() {
|
||||
GX_DrawDone ();
|
||||
|
||||
whichfb ^= 1; // flip framebuffer
|
||||
GX_SetZMode(GX_TRUE, GX_LEQUAL, GX_TRUE);
|
||||
GX_SetColorUpdate(GX_TRUE);
|
||||
GX_CopyDisp(xfb[whichfb],GX_TRUE);
|
||||
GX_DrawDone ();
|
||||
VIDEO_SetNextFramebuffer(xfb[whichfb]);
|
||||
VIDEO_Flush();
|
||||
VIDEO_WaitVSync();
|
||||
|
Loading…
Reference in New Issue
Block a user