Hi guys,

A bug, I think,

SDL::Video::fill_rect( $surface, $rect, $color) works, but if $rect = undef, it does not work.

fill_rect as documented here: http://sdl.perl.org/SDL-Video.html#blit_surface indicates it should. it states 'If dest_rect is NULL, the whole surface will be filled with color.'

I think I read the same on the libsdl site, too, so it should work.

So the bug must be that undef is not being interpreted as NULL to this function somewhere in the XS code.. way beyond me :(

btw: if $rect=0 it does not work either.

ps. I've posted this on IRC, but sending it here in case it's missed.

Reply via email to