Keyboard shortcut for enabling/disabling color cycle.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1595 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2010-08-29 18:11:16 +00:00
parent a5b5fa69e8
commit 05e05d0d75
7 changed files with 35 additions and 9 deletions

View File

@@ -1307,6 +1307,13 @@ void Main_handler(void)
action++;
#endif
break;
case SPECIAL_CYCLE_MODE:
Cycling_mode= !Cycling_mode;
// Restore palette
if (!Cycling_mode)
Set_palette(Main_palette);
action++;
break;
}
}
} // End of special keys
@@ -1579,7 +1586,12 @@ void Open_window(word width,word height, const char * title)
Cursor_shape=CURSOR_SHAPE_ARROW;
Paintbrush_hidden_before_window=Paintbrush_hidden;
Paintbrush_hidden=1;
Allow_colorcycling=0;
if (Allow_colorcycling)
{
Allow_colorcycling=0;
// Restore palette
Set_palette(Main_palette);
}
}
// Initialisation des listes de boutons de la fenêtre