diff --git a/sdl1/pdcdisp.c b/sdl1/pdcdisp.c index e85f0b6b..82c5c44c 100644 --- a/sdl1/pdcdisp.c +++ b/sdl1/pdcdisp.c @@ -13,7 +13,7 @@ #include "pdcsdl.h" -RCSID("$Id: pdcdisp.c,v 1.18 2007/06/19 01:49:02 wmcbrine Exp $") +RCSID("$Id: pdcdisp.c,v 1.19 2007/06/19 05:09:27 wmcbrine Exp $") #include #include @@ -69,7 +69,11 @@ void PDC_update_rects(void) { if (rectcount) { - SDL_UpdateRects(pdc_screen, rectcount, uprect); + if (rectcount == MAXRECT) + SDL_Flip(pdc_screen); + else + SDL_UpdateRects(pdc_screen, rectcount, uprect); + rectcount = 0; } }