mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Fixed rendering of grayscale images with alpha channel on unaccelerated machines. Thanks, Sanel (STR #1703)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -3,6 +3,8 @@ CHANGES IN FLTK 1.1.8
|
|||||||
- Documentation fixes (STR #1454, STR #1455, STR #1456,
|
- Documentation fixes (STR #1454, STR #1455, STR #1456,
|
||||||
STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
|
STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
|
||||||
STR #1639, STR #1645, STR #1644)
|
STR #1639, STR #1645, STR #1644)
|
||||||
|
- Fixed rendering of grayscale images with alpha
|
||||||
|
channel (STR #1703)
|
||||||
- Fixed occasional incomplete refresh (STR #1681)
|
- Fixed occasional incomplete refresh (STR #1681)
|
||||||
- Improved fl_down, fl_frame, added fl_box (STR #1678)
|
- Improved fl_down, fl_frame, added fl_box (STR #1678)
|
||||||
- Fixed selection of submenu items in
|
- Fixed selection of submenu items in
|
||||||
|
|||||||
+1
-1
@@ -344,7 +344,7 @@ static void alpha_blend(Fl_RGB_Image *img, int X, int Y, int W, int H, int cx, i
|
|||||||
// Composite grayscale + alpha over RGB...
|
// Composite grayscale + alpha over RGB...
|
||||||
// Composite RGBA over RGB...
|
// Composite RGBA over RGB...
|
||||||
for (int y = H; y > 0; y--, srcptr+=srcskip)
|
for (int y = H; y > 0; y--, srcptr+=srcskip)
|
||||||
for (int x = W; x > 0; x--, dstptr+=3) {
|
for (int x = W; x > 0; x--) {
|
||||||
srcg = *srcptr++;
|
srcg = *srcptr++;
|
||||||
srca = *srcptr++;
|
srca = *srcptr++;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user