Fix CRASH in Help screen, when pressing PageDown in pages of less than 16 lines. Bug is present in 98.0% release:(
Internal support for action shortcuts on joystick buttons, mousewheel, mouse3. Mousewheel now scrolls lists in Save/Load, Text, Help. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@589 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
30
aide.c
30
aide.c
@@ -339,14 +339,36 @@ void Fenetre_aide(int Section, const char *Sous_section)
|
||||
Scroller_aide();
|
||||
Touche=0;
|
||||
break;
|
||||
case SDLK_PAGEDOWN : // PageDown
|
||||
if (Position_d_aide_en_cours<Nb_lignes-31)
|
||||
Position_d_aide_en_cours+=15;
|
||||
case (SDLK_LAST+2) : // WheelUp
|
||||
if (Position_d_aide_en_cours>3)
|
||||
Position_d_aide_en_cours-=3;
|
||||
else
|
||||
Position_d_aide_en_cours=Nb_lignes-16;
|
||||
Position_d_aide_en_cours=0;
|
||||
Scroller_aide();
|
||||
Touche=0;
|
||||
break;
|
||||
case SDLK_PAGEDOWN : // PageDown
|
||||
if (Nb_lignes>16)
|
||||
{
|
||||
if (Position_d_aide_en_cours<Nb_lignes-16-15)
|
||||
Position_d_aide_en_cours+=15;
|
||||
else
|
||||
Position_d_aide_en_cours=Nb_lignes-16;
|
||||
Scroller_aide();
|
||||
Touche=0;
|
||||
}
|
||||
break;
|
||||
case (SDLK_LAST+3) : // Wheeldown
|
||||
if (Nb_lignes>16)
|
||||
{
|
||||
if (Position_d_aide_en_cours<Nb_lignes-16-3)
|
||||
Position_d_aide_en_cours+=3;
|
||||
else
|
||||
Position_d_aide_en_cours=Nb_lignes-16;
|
||||
Scroller_aide();
|
||||
Touche=0;
|
||||
}
|
||||
break;
|
||||
case SDLK_HOME : // Home
|
||||
Position_d_aide_en_cours=0;
|
||||
Scroller_aide();
|
||||
|
||||
Reference in New Issue
Block a user