Avoid floating-point exceptions while drawing underwave
commit76fbe2f4541b11af8bcb0b5e57bb155b796b8d8e
authorEli Zaretskii <eliz@gnu.org>
Mon, 21 Aug 2017 14:46:42 +0000 (21 17:46 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 21 Aug 2017 14:46:42 +0000 (21 17:46 +0300)
tree9d1387417298711062a0b1b4e81e625a9300bd2f
parent9840499564c90c43b1d269154593ebe57a7cb9b0
Avoid floating-point exceptions while drawing underwave

* src/w32term.c (x_get_scale_factor):
* src/xterm.c (x_get_scale_factor): Don't let the scale factors
become less than 1.  Reported by Yuri D'Elia <wavexx@thregr.org> in
http://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00459.html.
src/w32term.c
src/xterm.c