[SDL] SDL_FillRect messing with my input rect!

Id Kong spam_receptacle_ at hotmail.com
Thu Jun 1 00:23:20 PDT 2006



>From: Bill Kendrick <nbs at sonic.net>
>Reply-To: "A list for developers using the SDL library. 
>(includesSDL-announce)" <sdl at libsdl.org>
>To: "A list for developers using the SDL library. (includes 
>SDL-announce)"<sdl at libsdl.org>
>Subject: Re: [SDL] SDL_FillRect messing with my input rect!
>Date: Wed, 31 May 2006 11:31:38 -0700
>
> >From the documentation:
>
>   If there is a clip rectangle set on the destination (set via
>   SDL_SetClipRect), then this function will clip based on the
>   intersection of the clip rectangle and the dstrect rectangle, and the
>   dstrect rectangle will be modified to represent the area actually 
>filled.
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>See:
>   http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fFillRect
>
>Hope that helps! :)

Thanks!  I misunderstood that line, since it says "_If_ there is a clip 
rectangle set on the destination (set via SDL_SetClipRect)" and, of course, 
I never called that function so I expected there to be no clip rectangle...

But, in retrospect, it probably has one, by default--the very screen itself. 
  It, perhaps, makes it possible to draw rectangles partially off screen, 
too.  I've noticed that SDL_BlitSurface doesn't allow blits that are 
partially off screen, so perhaps that's an indication of this feature...

Thanks a lot for the clarification!

_________________________________________________________________
One week left to travel virtually with MSN Search World Tour 
http://worldtour.sympatico.msn.ca/





More information about the SDL mailing list