[gtk/wip/chergert/quartz4u: 75/116] macos: use quartz surface



commit d4b7fe4e2c3ea4804eece7e5c208466a831c554a
Author: Christian Hergert <chergert redhat com>
Date:   Thu May 28 15:33:11 2020 -0700

    macos: use quartz surface

 gdk/macos/gdkmacoscairocontext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacoscairocontext.c b/gdk/macos/gdkmacoscairocontext.c
index 21d05dc6fc..6cf3ef2a49 100644
--- a/gdk/macos/gdkmacoscairocontext.c
+++ b/gdk/macos/gdkmacoscairocontext.c
@@ -59,7 +59,7 @@ create_cairo_surface_for_surface (GdkSurface *surface)
   width = scale * gdk_surface_get_width (surface);
   height = scale * gdk_surface_get_height (surface);
 
-  cairo_surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
+  cairo_surface = cairo_quartz_surface_create (CAIRO_FORMAT_ARGB32, width, height);
 
   if (cairo_surface != NULL)
     cairo_surface_set_device_scale (cairo_surface, scale, scale);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]