From 7e7a74203a4e5bbbba2fcc8879311732b75cf221 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 29 Jun 2009 07:44:25 +0000 Subject: Fixed gray-scale images with alpha channel (STR #2105). Note: Windows needs RGBA Bitmaps (4 bytes) to do alpha blending. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6804 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 f9c07cb9a..849d43f90 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -465,7 +465,7 @@ void Fl_RGB_Image::draw(int XP, int YP, int WP, int HP, int cx, int cy) { CGDataProviderRelease(src); #elif defined(WIN32) id = fl_create_offscreen(w(), h()); - if (d() == 2 || d() == 4 && fl_can_do_alpha_blending()) { + if ((d() == 2 || d() == 4) && fl_can_do_alpha_blending()) { fl_begin_offscreen((Fl_Offscreen)id); fl_draw_image(array, 0, 0, w(), h(), d()|FL_IMAGE_WITH_ALPHA, ld()); fl_end_offscreen(); -- cgit v1.2.3