fix in update

This commit is contained in:
p.kosyh 2010-09-17 04:12:30 +00:00
parent d51f3ed533
commit 60d200b248

View file

@ -1094,15 +1094,16 @@ void gfx_flip(void)
SDL_Flip(screen); SDL_Flip(screen);
} }
void gfx_update(int x, int y, int w, int h) { void gfx_update(int x, int y, int w, int h) {
// SDL_Flip(screen); // SDL_Flip(screen);
if (x < 0) { if (x < 0) {
x = 0;
w += x; w += x;
x = 0;
} }
if (y < 0) { if (y < 0) {
y = 0;
h += y; h += y;
y = 0;
} }
if (w < 0 || h < 0) if (w < 0 || h < 0)
return; return;