forked from AuroraMiddleware/gtk
testgtk: Check visual, not colormap for RGBA availability
This commit is contained in:
parent
0a63e954af
commit
fc52c9daf3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user