diff options
| author | Manolo Gouy <Manolo> | 2017-08-26 14:10:56 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-08-26 14:10:56 +0000 |
| commit | 1fdf15d8ebd443c3ffc736a21944e091f99c07ce (patch) | |
| tree | 39ab46c8c24747b1ef86301544313fad51522e24 /src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx | |
| parent | a57381e8042d45384b2f502146c6418294ad1334 (diff) | |
WIN32: allow to change the active drawing surface between Fl_Display_Device and Fl_Image_Surface and keep the clipping region correct.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12401 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx index 0f80c0ecd..73d9498d2 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx @@ -94,7 +94,7 @@ char Fl_GDI_Graphics_Driver::can_do_alpha_blending() { } HDC fl_makeDC(HBITMAP bitmap) { - HDC new_gc = CreateCompatibleDC((HDC)fl_graphics_driver->gc()); + HDC new_gc = CreateCompatibleDC((HDC)Fl_Graphics_Driver::default_driver().gc()); SetTextAlign(new_gc, TA_BASELINE|TA_LEFT); SetBkMode(new_gc, TRANSPARENT); #if USE_COLORMAP @@ -282,6 +282,10 @@ Fl_Region Fl_GDI_Graphics_Driver::scale_clip(float f) { return (r == r2 ? NULL : (rstack[rstackptr] = r2, r)); } +void Fl_GDI_Graphics_Driver::set_current_() { + restore_clip(); +} + // // End of "$Id$". // |
