diff options
| author | Manolo Gouy <Manolo> | 2012-03-18 18:48:29 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2012-03-18 18:48:29 +0000 |
| commit | 32d4bc4099ac62a32166c9d39ddd47d6a193be2a (patch) | |
| tree | d01eab46321ea19780aa7ca0614cdd258885e368 /src/fl_draw_image_win32.cxx | |
| parent | 53ccc787591de6b4aea756f45c8d3cdd6611b818 (diff) | |
Fix STR#2810: removed all uses of function Fl_Device::class_name().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_draw_image_win32.cxx')
| -rw-r--r-- | src/fl_draw_image_win32.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fl_draw_image_win32.cxx b/src/fl_draw_image_win32.cxx index 73f7790ec..13b347dd7 100644 --- a/src/fl_draw_image_win32.cxx +++ b/src/fl_draw_image_win32.cxx @@ -3,7 +3,7 @@ // // WIN32 image drawing code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2012 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -169,7 +169,7 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, int blocking = h; {int size = linesize*h; // when printing, don't limit buffer size not to get a crash in StretchDIBits - if (size > MAXBUFFER && Fl_Surface_Device::surface()->class_name() != Fl_Printer::class_id) { + if (size > MAXBUFFER && Fl_Surface_Device::surface() == Fl_Display_Device::display_device()) { size = MAXBUFFER; blocking = MAXBUFFER/linesize; } @@ -247,7 +247,7 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, } } } - if(Fl_Surface_Device::surface()->class_name() == Fl_Printer::class_id) { + if (Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) { // if print context, device and logical units are not equal, so SetDIBitsToDevice // does not do the expected job, whereas StretchDIBits does it. StretchDIBits(fl_gc, x, y+j-k, w, k, 0, 0, w, k, |
