diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-09-25 18:26:33 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-09-25 18:26:33 +0000 |
| commit | ffad932289d17877a506a51c5f2f32c743d747d8 (patch) | |
| tree | f45d4fa0e5b42f4faad7c5aba99a3da01d243a9c /src/Fl_Menu_Window.cxx | |
| parent | f9dc24a096d98abf3d3176eee74a759f886c4134 (diff) | |
+ Cairo branch merged after successful testing on Mac OS X 10.5.4, Linux Ubuntu 8.04,Windows XPSP2.
This integration is minimum as discussed, in particular it does not feature any fltk cairo drawing substitution
as in fltk2.
Still it provides all the fundations to go further even in next 1.4 ...
By default *no* cairo features are implemented nor linked, it can only be activated by --enable-cairo
whose default is false.
Please visit the README.cairo for complete description.
+ fixed UTF8 compilation pb on linux ubuntu
+ minor comments fixes on the fly
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Menu_Window.cxx')
| -rw-r--r-- | src/Fl_Menu_Window.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Fl_Menu_Window.cxx b/src/Fl_Menu_Window.cxx index 12422cfab..a7f17c7d0 100644 --- a/src/Fl_Menu_Window.cxx +++ b/src/Fl_Menu_Window.cxx @@ -67,7 +67,12 @@ void Fl_Menu_Window::flush() { if (!fl_overlay_visual || !overlay()) {Fl_Single_Window::flush(); return;} Fl_X *myi = Fl_X::i(this); fl_window = myi->xid; - if (!gc) gc = XCreateGC(fl_display, myi->xid, 0, 0); + if (!gc) { + gc = XCreateGC(fl_display, myi->xid, 0, 0); +# if defined(HAVE_CAIRO) + Fl::cairo_make_current(gc); // capture gc changes automatically to update the cairo context adequately +# endif + } fl_gc = gc; fl_overlay = 1; fl_clip_region(myi->region); myi->region = 0; current_ = this; |
