From f64829b7bfb6c34a03b754f191167f5885203b2d Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 25 Aug 2010 08:45:33 +0000 Subject: Fixed a bug that would have crashed the program on Windows versions before Windows 2000 when printing pixmaps. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Pixmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index ef3dd5261..e7f9eaacb 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -153,7 +153,7 @@ void Fl_GDI_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP hMod = LoadLibrary("MSIMG32.DLL"); if(hMod) fl_TransparentBlt = (fl_transp_func)GetProcAddress(hMod, "TransparentBlt"); } - if (hMod) { + if (fl_TransparentBlt) { Fl_Offscreen tmp_id = fl_create_offscreen(pxm->w(), pxm->h()); fl_begin_offscreen(tmp_id); uchar *bitmap = 0; -- cgit v1.2.3