mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 19:26:13 +01:00
61ed28ee13
source bitmaps. The destination is preserved now when encountering such transparent pixels in the source bitmaps. * B_OP_ERASE is supposed to replace with the low color whereever a source bitmap has a non-transparent pixel. * The B_OP_MIN and B_OP_MAX drawing modes are supposed to select either the source or destination pixel based on their brightness, not combine the two pixels' color components into a new pixel. The brightness_for() function is taken from ColorConversion.cpp in the interface kit. Probably a simpler algorithm would do as well. * Handle B_TRANSPARENT_MAGIC_* in all cases when drawing bitmaps with non-alpha source bitmaps, as all modes except B_OP_COPY are sensitive to transparency. This should make all drawing modes behave as documented in the BeBook. Except for B_OP_SELECT, which seems broken under R5, the results compare nicely now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26075 a95241bf-73f2-0310-859d-f6bbb57e9c96