Skip to content

Commit

Permalink
Correct function Fl_GDI_Graphics_Driver::gc(void*) that did not upda…
Browse files Browse the repository at this point in the history
…te the global variable fl_gc correctly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Oct 6, 2016
1 parent b20e646 commit 311c7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/GDI/Fl_GDI_Graphics_Driver.H
Expand Up @@ -49,7 +49,7 @@ public:
virtual ~Fl_GDI_Graphics_Driver() { if (p) free(p); }
virtual int has_feature(driver_feature mask) { return mask & NATIVE; }
char can_do_alpha_blending();
virtual void gc(void *ctxt) {if (ctxt != gc_) global_gc(); gc_ = (HDC)ctxt;}
virtual void gc(void *ctxt) { gc_ = (HDC)ctxt; global_gc(); }
virtual void *gc() {return gc_;}

// --- bitmap stuff
Expand Down

0 comments on commit 311c7d9

Please sign in to comment.