summaryrefslogtreecommitdiff
path: root/src/Fl_Pixmap.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2010-08-25 08:45:33 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2010-08-25 08:45:33 +0000
commitf64829b7bfb6c34a03b754f191167f5885203b2d (patch)
tree1b8ac14b8baeb7d067de17f090fbf3191da71208 /src/Fl_Pixmap.cxx
parenta493692f017f4d22781c4c4c919861cfa1ac8979 (diff)
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
Diffstat (limited to 'src/Fl_Pixmap.cxx')
-rw-r--r--src/Fl_Pixmap.cxx2
1 files changed, 1 insertions, 1 deletions
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;