Check for invalid GTK+ monitor scales
commit1d1581a2de6c6378cdf730197c6886d0e036805e
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 May 2015 16:21:56 +0000 (14 09:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 May 2015 16:27:25 +0000 (14 09:27 -0700)
tree8d2afbf02dd98fc8614f73e88f0877813a704904
parentf85318cdcdc2f7cf7729117fcc841407776c7e4b
Check for invalid GTK+ monitor scales

* src/gtkutil.c (xg_get_gdk_scale): Return 1 for invalid scales,
INT_MAX for too-large scales.  All callers changed to assume the
result is valid (Bug#20432).
(xg_frame_set_char_size, xg_update_scrollbar_pos):
Calculate scale only if needed.

show ASCII approximations instead.
src/gtkutil.c