Fix access to Cairo context.

This commit is contained in:
Aditya Siram 2023-08-12 14:47:23 -05:00 committed by Albrecht Schlosser
parent 7cdbc189f0
commit 17d0a4cc5f

View File

@ -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;
}