[quartz] Silence two compiler warnings.
authorJohn Ralls <jralls@ceridwen.us>
Sat, 11 Feb 2023 20:51:42 +0000 (12:51 -0800)
committerJohn Ralls <jralls@ceridwen.us>
Sat, 11 Feb 2023 20:57:08 +0000 (12:57 -0800)
One unused function, one return type mismatch.

gdk/quartz/GdkQuartzView.c
gdk/quartz/gdkwindow-quartz.c

index f8c53841f3d703fd6840d94cc2be93c7777b7001..9928256fdf51638fc3851549b7f879d14111e3d0 100644 (file)
      return YES;
 }
 
-static void
-nsrect_from_cairo_rect (NSRect *nsrect, cairo_rectangle_int_t *rect)
-{
-  nsrect->origin.x = (CGFloat)rect->x;
-  nsrect->origin.y = (CGFloat)rect->y;
-  nsrect->size.width = (CGFloat)rect->width;
-  nsrect->size.height = (CGFloat)rect->height;
-}
-
 static void
 cairo_rect_from_nsrect (cairo_rectangle_int_t *rect, NSRect *nsrect)
 {
index 429f2bc0cfe63ef6758aa08fb15d0bcc0e66dee3..86620defc2ff7d1d6844ab5c75fc938c34dac97d 100644 (file)
@@ -142,7 +142,7 @@ gdk_window_get_quartz_impl (GdkWindow* window)
 
   g_return_val_if_fail (GDK_IS_WINDOW_IMPL_QUARTZ (window->impl), NULL);
 
-  return window->impl;
+  return GDK_WINDOW_IMPL_QUARTZ (window->impl);
 }
 
 NSView *