Skip to content

Commit

Permalink
Fixed rendering of grayscale images with alpha channel on unaccelerat…
Browse files Browse the repository at this point in the history
…ed machines. Thanks, Sanel (STR #1703)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Matthias Melcher committed Jun 7, 2007
1 parent a914d9c commit 38cc8c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -3,6 +3,8 @@ CHANGES IN FLTK 1.1.8
- Documentation fixes (STR #1454, STR #1455, STR #1456,
STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
STR #1639, STR #1645, STR #1644)
- Fixed rendering of grayscale images with alpha
channel (STR #1703)
- Fixed occasional incomplete refresh (STR #1681)
- Improved fl_down, fl_frame, added fl_box (STR #1678)
- Fixed selection of submenu items in
Expand Down
2 changes: 1 addition & 1 deletion src/Fl_Image.cxx
Expand Up @@ -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 RGBA over RGB...
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++;
srca = *srcptr++;

Expand Down

0 comments on commit 38cc8c2

Please sign in to comment.