fixed a bug or 2 in the synopsis being displayed incompletely.

added a few more game IDs & alt dols to the list of knowns
This commit is contained in:
giantpune 2009-07-19 06:09:34 +00:00
parent 621e32c9be
commit 73d8ded0e5
3 changed files with 19 additions and 9 deletions

View File

@ -352,7 +352,8 @@ void GuiText::Draw()
i=0;
for(j=firstLine-1; j < numLines+firstLine-1; j++)
{
if (j<linenum-(firstLine-1))
//if (j<linenum-(firstLine-1))
if (j < linenum)
(font ? font : fontSystem)->drawText(this->GetLeft(), this->GetTop()+voffset+i*lineheight, tmptext[j], c, style);
i++;
}

View File

@ -275,13 +275,21 @@ int autoSelectDol(const char *id)
if (strcmp(id,"R5TP69") == 0) return 1493;
if (strcmp(id,"R9OP69") == 0) return 1991;
if (strcmp(id,"R9OE69") == 0) return 1973;
if (strcmp(id,"RVUP8P") == 0) return 16426;
if (strcmp(id,"RVUE8P") == 0) return 16405;
if (strcmp(id,"RJ8P64") == 0) return 8;
if (strcmp(id,"RHDP8P") == 0) return 149;
/* Grand Slam R5TP69 1493
Madden NFL08 RNFP69 1079
Atlantis"Indianer Jones" RJ8P64 8
Fifa08 RF8P69 463
Fifa08 RF8X69 464
Wii Sports Resort RZTP01 952

View File

@ -723,22 +723,23 @@ int showGameInfo(char *ID)
}
else if ((upBtn.GetState()==STATE_CLICKED||upBtn.GetState()==STATE_HELD) && page==2)
{
int l=synopsisTxt->GetFirstLine()>1?synopsisTxt->GetFirstLine()-1:1;
synopsisTxt->SetFirstLine(l);
//int l=synopsisTxt->GetFirstLine()-1;
if (synopsisTxt->GetFirstLine()>1)
synopsisTxt->SetFirstLine(synopsisTxt->GetFirstLine()-1);
usleep(60000);
if (!((ButtonsHold() & WPAD_BUTTON_UP)||(ButtonsHold() & PAD_BUTTON_UP)))
upBtn.ResetState();
}
else if ((dnBtn.GetState()==STATE_CLICKED||dnBtn.GetState()==STATE_HELD) && page==2
&&synopsisTxt->GetTotalLines()>pagesize
&&synopsisTxt->GetFirstLine()<synopsisTxt->GetTotalLines()-pagesize)
&&synopsisTxt->GetFirstLine()-1<synopsisTxt->GetTotalLines()-pagesize)
{
int l=0;
if(synopsisTxt->GetTotalLines()>pagesize)
//if(synopsisTxt->GetTotalLines()>pagesize)
l=synopsisTxt->GetFirstLine()+1;
if (l>(synopsisTxt->GetTotalLines()+1)-pagesize)
l=(synopsisTxt->GetTotalLines()+1)-pagesize;
//if (l>(synopsisTxt->GetTotalLines()+1)-pagesize)
//l=(synopsisTxt->GetTotalLines()+1)-pagesize;
synopsisTxt->SetFirstLine(l);
usleep(60000);