Refactored the "#ifndef __macosx__" that were around every SDL_UpdateRect().

Redraw method is now defined once, in sdlscreen.c

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@266 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-10-15 22:52:00 +00:00
parent a11b928e3d
commit 9770d70f2a
13 changed files with 182 additions and 325 deletions

View File

@@ -40,6 +40,7 @@
#include "erreurs.h"
#include "linux.h"
#include "io.h"
#include "sdlscreen.h"
#define FILENAMESPACE 13
@@ -331,12 +332,10 @@ void Dessiner_preview_palette(void)
Preview_Pos_Y+(((Indice&15)*5)*Menu_Facteur_Y),
5*Menu_Facteur_X,5*Menu_Facteur_Y,Indice);
#ifndef __macosx__
SDL_UpdateRect(Ecran_SDL,
UpdateRect(
Preview_Pos_X*Menu_Facteur_X,
Preview_Pos_Y*Menu_Facteur_Y,
5*Menu_Facteur_X*256,5*Menu_Facteur_Y*256);
#endif
}