diff options
| author | Manolo Gouy <Manolo> | 2016-02-18 16:21:51 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-02-18 16:21:51 +0000 |
| commit | f33b45f1d30653fb5da4817089e38ff0a2413cfb (patch) | |
| tree | 9edc759690defa581b00b6ada80bb334f4ac5da8 /src/Fl_x.cxx | |
| parent | 6ce27012a9412c4964e0ae40c81ea92ff39a61d3 (diff) | |
Remove all uses of the fl_gc global variable. Towards a clean driver model.
fl_gc remains usable by the application as a hook into the system.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 16f3816b5..23b75c44a 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -2919,18 +2919,14 @@ preparePrintFront(); Window fl_window; Fl_Window *Fl_Window::current_; -GC fl_gc; // make X drawing go into this window (called by subclass flush() impl.) void Fl_Window::make_current() { - static GC gc; // the GC used by all X windows if (!shown()) { fl_alert("Fl_Window::make_current(), but window is not shown()."); Fl::fatal("Fl_Window::make_current(), but window is not shown()."); } - if (!gc) gc = XCreateGC(fl_display, i->xid, 0, 0); fl_window = i->xid; - fl_gc = gc; current_ = this; fl_clip_region(0); |
