Author: cazfi Date: Sat Apr 1 19:23:21 2017 New Revision: 35180 URL: http://svn.gna.org/viewcvs/freeciv?rev=35180&view=rev Log: Remove use of GdkVisual
See hrm Feature #647933 Modified: trunk/client/gui-gtk-4.0/colors.c Modified: trunk/client/gui-gtk-4.0/colors.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-4.0/colors.c?rev=35180&r1=35179&r2=35180&view=diff ============================================================================== --- trunk/client/gui-gtk-4.0/colors.c (original) +++ trunk/client/gui-gtk-4.0/colors.c Sat Apr 1 19:23:21 2017 @@ -36,26 +36,6 @@ *************************************************************/ enum Display_color_type get_visual(void) { - GdkVisual *visual; - GdkVisualType type; - - visual = gdk_screen_get_system_visual(gdk_screen_get_default()); - type = gdk_visual_get_visual_type(visual); - - if (type == GDK_VISUAL_STATIC_GRAY) { - /* StaticGray, use black and white */ - log_verbose("found B/W display."); - return BW_DISPLAY; - } - - if (type < GDK_VISUAL_STATIC_COLOR) { - /* No color visual available at default depth */ - log_verbose("found grayscale(?) display."); - return GRAYSCALE_DISPLAY; - } - - log_verbose("color system booted ok."); - return COLOR_DISPLAY; } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits