diff options
| author | Manolo Gouy <Manolo> | 2016-10-06 16:59:37 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-10-06 16:59:37 +0000 |
| commit | b20e64667653188100a520501ca041115076125a (patch) | |
| tree | ec2e6a66c97978fb5954cef4a20acc28f11ee2dd /src | |
| parent | c7c238675a0b66b52513b5c1931b5ec15054f406 (diff) | |
Correct function Fl_Quartz_Graphics_Driver::gc(void*) that did not update the global variable fl_gc correctly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H index 94830acc1..0e01a4c94 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H @@ -68,7 +68,7 @@ public: static const int CoreText_threshold; // min Mac OS version for CoreText virtual ~Fl_Quartz_Graphics_Driver() { if (p) free(p); } virtual int has_feature(driver_feature mask) { return mask & (NATIVE | is_printer_); } - virtual void gc(void *ctxt) {if (ctxt != gc_) global_gc(); gc_ = (CGContextRef)ctxt; } + virtual void gc(void *ctxt) { gc_ = (CGContextRef)ctxt; global_gc(); } virtual void *gc() {return gc_;} char can_do_alpha_blending(); |
