From c6de2dd3ef9e9a3c17ce210ff1775bd6e183d738 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 15 Sep 2006 15:35:16 +0000 Subject: 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 --- src/Fl_Image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Image.cxx') 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 -- cgit v1.2.3