From 374ea9e9eb01e5a4975edf6e7bebb70708f1bee1 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 19 Apr 2018 13:14:37 +0000 Subject: Fix handling of bg argument of fl_draw_pixmap(char**, int , int , Fl_Color bg) during direct drawing of pixmap image data. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12859 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/PostScript/Fl_PostScript_image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/PostScript/Fl_PostScript_image.cxx') diff --git a/src/drivers/PostScript/Fl_PostScript_image.cxx b/src/drivers/PostScript/Fl_PostScript_image.cxx index c007d9460..7c977bdf7 100644 --- a/src/drivers/PostScript/Fl_PostScript_image.cxx +++ b/src/drivers/PostScript/Fl_PostScript_image.cxx @@ -575,7 +575,7 @@ void Fl_PostScript_Graphics_Driver::draw_pixmap(Fl_Pixmap * pxm,int XP, int YP, const char * const * di =pxm->data(); int w,h; if (!fl_measure_pixmap(di, w, h)) return; - mask=0; + mask=(uchar*)1;// will instruct fl_draw_pixmap() to compute the image's mask mx = w; my = h; fl_draw_pixmap(di, 0, 0, FL_BLACK); // assigns mask to an array -- cgit v1.2.3