mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 06:21:26 +08:00
Fix access to Cairo context.
This commit is contained in:
committed by
Albrecht Schlosser
parent
7cdbc189f0
commit
17d0a4cc5f
+1
-1
@@ -106,7 +106,7 @@ cairo_t *Fl::cairo_make_current(Fl_Window *wi) {
|
||||
struct wld_window *xid = fl_wl_xid(wi);
|
||||
if (!xid->buffer)
|
||||
return NULL; // this may happen with GL windows
|
||||
cairo_ctxt = xid->buffer->cairo_;
|
||||
cairo_ctxt = xid->buffer->draw_buffer.cairo_;
|
||||
cairo_state_.cc(cairo_ctxt, false);
|
||||
return cairo_ctxt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user