Commit fc52c9da authored by Benjamin Otte's avatar Benjamin Otte
Browse files

testgtk: Check visual, not colormap for RGBA availability

parent 0a63e954
......@@ -147,7 +147,7 @@ on_alpha_window_expose (GtkWidget *widget,
allocation.height / 2,
radius * 1.33);
if (gdk_screen_get_rgba_colormap (gtk_widget_get_screen (widget)) &&
if (gdk_screen_get_rgba_visual (gtk_widget_get_screen (widget)) &&
gtk_widget_is_composited (widget))
cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0); /* transparent */
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment