Trying to understand the unsignedness in ALPHA_BLEND_RGBA

"capehill" <[email protected]> Tue, 03 Jan 2017 20:44:32 +0000
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
After debugging testautomation_surface, I have concluded that SW blending doesn't work at least for me (big endian AmigaOS platform).

For example, if sR is 0 and dR is 255, we will get -255*sA casted to an unsigned value. Basically results are quite large numbers instead of the expected 0-255 range. Am I missing something here?

Reference: https://hg.libsdl.org/SDL/file/d11daa346140/src/video/SDL_blit.h#l455

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org