[SDL] Re: Different SDL_UpdateRect behaviour between Win95/98 and Win98SE

Rainer Deyke root at rainerdeyke.com
Tue Sep 12 22:14:09 PDT 2000


"Enzo" <enzo.gupi at tiscalinet.it> wrote in message
news:20000912092729.B700 at tiscalinet.it...
> Ooops! I'm really really sorry...
> I've found that there was another bug on MY program!
>
> I was calling a procedure called UpdateArea (top,left,right,bottom)
> like this:
>
>    void Screen::UpdateArea (int top, int left, int right, int bottom)
>    {
>      SDL_UpdateRect (Page, top, left, right-left+1, bottom-top+1);
>    }
>
> So, by calling UpdateArea (0,0,0,0) I was calling SDL_UpdateRect
(0,0,1,1),
> and by calling UpdateArea (0,0,639,479) I was calling SDL_UpdateRect
(0,0,640,480)

That's correct, isn't it?  SDL_UpdateRect(0, 0, 640, 480) should update the
whole screen in 640x480 mode.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the SDL mailing list