[SDL] A couple questions on SDL
Lilith Calbridge
lilith at dcccd.edu
Thu Jul 13 08:46:24 PDT 2006
>>> On 7/13/2006 at 6:44 AM, in message <op.tcmlk2keg0yv8c at localhost>,
trick at icculus.org wrote:
> On Thu, 13 Jul 2006 05:55:44 +0200, Lilith Calbridge
<lilith at dcccd.edu>
> wrote:
>> That'll teach me to leave my thinking cap back at the office. I
was
>> thrown by the statement in the documentation that only the x and y
>> values of the source rectangle are used. I should have figured that
the
>> blit would use the w and h values of the destination rectangle to
define
>> what to transfer from the source surface.
>
> You got that backwards. The w and h values are used in the source
> rectangle, but not in the destination rectangle (since the size was
> already determined by the source rect, and SDL doesn't support
scaled
> blits). Also note that the dest rect is modified to contain the
> rectangle that was affected (after clipping).
Thanks. I'm not sure how that got in my head. And that explains why
the rectangles are passed by address rather than by value.
> - Gerry
--
Thanks,
Lilith
More information about the SDL
mailing list