From 3e8e2ea62eb194d662de82bc3914d1094d8db7b7 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 30 Oct 2016 20:55:31 +0000 Subject: Replace erroneous bitwise & by logical && git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers') diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx index cbd6f591a..0e2740bcf 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx @@ -549,7 +549,7 @@ int Fl_GDI_Graphics_Driver::draw_scaled(Fl_Image *img, int XP, int YP, int WP, i HDC new_gc = CreateCompatibleDC(gc_); int save = SaveDC(new_gc); SelectObject(new_gc, (HBITMAP)rgb->id_); - if ((img->d() % 2) == 0 & can_do_alpha_blending()) { + if ((img->d() % 2) == 0 && can_do_alpha_blending()) { alpha_blend_(XP, YP, WP, HP, new_gc, 0, 0, rgb->w(), rgb->h()); } else { SetStretchBltMode(gc_, HALFTONE); -- cgit v1.2.3