Fix high-depth handling
authorMatthias Clasen <mclasen@redhat.com>
Thu, 22 Sep 2022 00:47:26 +0000 (20:47 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 22 Sep 2022 00:47:26 +0000 (20:47 -0400)
We mark this flag as always available, but we
were only checking it in debug builds.

gdk/gdkdrawcontext.c

index 5e64ec32f98e89f38203e26a0a415c2cab7fc5ee..8c27e938c051b69f13511c092ce33afca5e5bf10 100644 (file)
@@ -364,7 +364,7 @@ gdk_draw_context_begin_frame_full (GdkDrawContext       *context,
       return;
     }
 
-  if (GDK_DISPLAY_DEBUG_CHECK (priv->display, HIGH_DEPTH))
+  if (gdk_display_get_debug_flags (priv->display) & GDK_DEBUG_HIGH_DEPTH)
     prefers_high_depth = TRUE;
 
   priv->frame_region = cairo_region_copy (region);