[gtk/debug-envvars-cleanup: 2/16] Fix high-depth handling




commit 7785c18c56dff8193c01c8afba49ef5c09295d56
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Sep 21 20:47:26 2022 -0400

    Fix high-depth handling
    
    We mark this flag as always available, but we
    were only checking it in debug builds.

 gdk/gdkdrawcontext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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);


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