From: Matthias Clasen Date: Thu, 22 Sep 2022 00:47:26 +0000 (-0400) Subject: Fix high-depth handling X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~1^2~39^2~28 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7785c18c56dff8193c01c8afba49ef5c09295d56;p=gtk4.git Fix high-depth handling We mark this flag as always available, but we were only checking it in debug builds. --- diff --git a/gdk/gdkdrawcontext.c b/gdk/gdkdrawcontext.c index 5e64ec32f9..8c27e938c0 100644 --- a/gdk/gdkdrawcontext.c +++ b/gdk/gdkdrawcontext.c @@ -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);