mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
x11: Fix debug code
With recent changes, nobody compiled with debug enabled. Fix that.
This commit is contained in:
parent
7047502d84
commit
f0d337a0ca
@ -279,10 +279,22 @@ _gdk_visual_init (GdkScreen *screen)
|
||||
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
if (_gdk_debug_flags & GDK_DEBUG_MISC)
|
||||
for (i = 0; i < nvisuals; i++)
|
||||
g_message ("visual: %s: %d",
|
||||
visual_names[visuals[i]->visual.type],
|
||||
visuals[i]->visual.depth);
|
||||
{
|
||||
static const gchar *const visual_names[] =
|
||||
{
|
||||
"static gray",
|
||||
"grayscale",
|
||||
"static color",
|
||||
"pseudo color",
|
||||
"true color",
|
||||
"direct color",
|
||||
};
|
||||
|
||||
for (i = 0; i < nvisuals; i++)
|
||||
g_message ("visual: %s: %d",
|
||||
visual_names[visuals[i]->type],
|
||||
visuals[i]->depth);
|
||||
}
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
|
||||
screen_x11->navailable_depths = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user