diff options
| author | Manolo Gouy <Manolo> | 2016-02-19 11:52:45 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-02-19 11:52:45 +0000 |
| commit | 6d766cc6814a9e7a04c0b147c7a3cbdc0817dfd4 (patch) | |
| tree | c15758e6d6a729de86408157f539ef10479a382c /src/drivers/GDI/Fl_GDI_Graphics_Driver.h | |
| parent | f33b45f1d30653fb5da4817089e38ff0a2413cfb (diff) | |
Update the fl_gc global variable also when Fl_Graphics_Driver::set_gc() is called.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/GDI/Fl_GDI_Graphics_Driver.h')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.h b/src/drivers/GDI/Fl_GDI_Graphics_Driver.h index 722c7410a..6fd93dbfc 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.h +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.h @@ -43,7 +43,7 @@ public: const char *class_name() {return class_id;}; virtual int has_feature(driver_feature mask) { return mask & NATIVE; } char can_do_alpha_blending(); - virtual void set_gc(void *ctxt) {gc = (HDC)ctxt;} + virtual void set_gc(void *ctxt) {if (ctxt != gc) global_gc(); gc = (HDC)ctxt;} virtual void *get_gc() {return gc;} // --- bitmap stuff |
