Improved the speed of the spread and swap commands in the palette window by only refreshing the logical palette instead of the physical one (at least it works on MacOSX, i don't know if it's any good on other versions)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@292 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Franck Charlet
2008-10-20 20:08:26 +00:00
parent e31b88ceed
commit 2b232bbc48
8 changed files with 197 additions and 58 deletions

View File

@@ -507,14 +507,14 @@ short Max_Y=10000;
void Flush_update(void)
{
#if (METHODE_UPDATE == METHODE_UPDATE_PLEINE_PAGE)
#if (METHODE_UPDATE == METHODE_UPDATE_PLEINE_PAGE)
// Mise à jour de la totalité de l'écran
if (Update_necessaire)
{
SDL_UpdateRect(Ecran_SDL, 0, 0, 0, 0);
Update_necessaire=0;
}
#endif
#endif
#if (METHODE_UPDATE == METHODE_UPDATE_PAR_CUMUL)
if (Min_X>=Max_X || Min_Y>=Max_Y)
{