summaryrefslogtreecommitdiff
path: root/src/Fl_Image.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-09-15 15:35:16 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-09-15 15:35:16 +0000
commitc6de2dd3ef9e9a3c17ce210ff1775bd6e183d738 (patch)
treed9a781c366b4b41678267c786c4a411b24957bb0 /src/Fl_Image.cxx
parentdac4c5630458e1183b5d234aed395971a5642d52 (diff)
Implemented alpha blending for WIN32. I believe that I did it in a way that is compatible even with Windows 95, but please let me know if you have any concerns. Cygwin not tested, but hopefully OK.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Image.cxx')
-rw-r--r--src/Fl_Image.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx
index 60e56078a..f1247512a 100644
--- a/src/Fl_Image.cxx
+++ b/src/Fl_Image.cxx
@@ -352,7 +352,7 @@ void Fl_RGB_Image::draw(int XP, int YP, int WP, int HP, int cx, int cy) {
fl_begin_offscreen((Fl_Offscreen)id);
fl_draw_image(array, 0, 0, w(), h(), d(), ld());
fl_end_offscreen();
- if (d() == 2 || d() == 4) {
+ if (d() == 2 || d() == 4 && !fl_can_do_alpha_blending()) {
mask = fl_create_alphamask(w(), h(), d(), ld(), array);
}
#endif