OS_SpriteOp and 32bpp sprites
Tony van der Hoff
tony at mk-net.demon.co.uk
Mon Nov 18 23:12:59 GMT 2002
On 18 Nov 2002, in message <484b81974b.kevin at bracey-griffith.freeserve.co.uk>,
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.
>
> So, there should be no problem with just changing the prototype.
>
Except, I think, it would break existing code, passing an os_gcol. Not a real
error, maybe, but the compiler would complain.
--
Tony van der Hoff | MailTo:tony at mk-net.demon.co.uk
| MailTo:avanderhoff at iee.org
Buckinghamshire, England | http:www.mk-net.demon.co.uk
More information about the oslib-user
mailing list