Commit 341b6056f3df284d9f0d2c5a9e50877d4e0601ab

Thomas de Grivel 2024-01-30T18:00:38

fix window render in cairo quartz view

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libc3/window/cairo/quartz/window_cairo_quartz_view.m b/libc3/window/cairo/quartz/window_cairo_quartz_view.m
index a98df3c..97d20ba 100644
--- a/libc3/window/cairo/quartz/window_cairo_quartz_view.m
+++ b/libc3/window/cairo/quartz/window_cairo_quartz_view.m
@@ -42,6 +42,7 @@
                                                  self.bounds.size.width,
                                                  self.bounds.size.height);
     cairo_t *cr = cairo_create(surface);
+    self.window_cairo->cr = cr;
     if (! self.window_cairo->render(self.window_cairo)) {
       [self.window close];
       [self.window release];