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:
dimok321 2009-10-17 22:50:42 +00:00
parent 3c6bf6523b
commit 0c7ac826c3
6 changed files with 8 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -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();
}

View File

@ -93,6 +93,7 @@ enum
enum
{
NONE,
WRAP,
LONGTEXT,
DOTTED,

View File

@ -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;

View File

@ -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);
}

View File

@ -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();