OS_SpriteOp and 32bpp sprites

David J. Ruck druck at druck.org.uk
Tue Nov 19 01:26:28 GMT 2002


On 18 Nov 2002 Kevin Bracey <kevin at bracey-griffith.freeserve.co.uk> wrote:
> In message <f75f46974b.Tony at mk-net.demon.co.uk>
>           Tony van der Hoff <tony at mk-net.demon.co.uk> wrote:
>> So, at the next update, I'll add osspriteop_read_pixel_colour_deep and
>> osspriteop_write_pixel_colour_deep taking an unsigned int type for R5 as
>> alternatives to these calls.
> 
> There should be no need to make an alternate call, as with the current
> callee-narrowing argument passing conventions, the compiler would always
> have just passed a word-wide value anyway, regardless of the fact that the
> function took a char. It would have expected the callee to do any required
> narrowing.

Eeeek! This is begging for problems with future compiler versions.
Think boolean types.

Cheers
---Dave

-- 
____________________________________________________________________________

  David J. Ruck    Phone: +44- (0)7974 108301    Email: druck at druck.org.uk
____________________________________________________________________________



More information about the oslib-user mailing list