Fix bug #6364 with slow scrolling on MS-Windows with bitmap fonts.
authorTom Seddon <emacs@tomseddon.plus.com>
Fri, 29 Nov 2013 11:01:45 +0000 (13:01 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 29 Nov 2013 11:01:45 +0000 (13:01 +0200)
commit579ca67bf4c73113aed658f3a954807de47ca3e3
tree54149e64793d1367625628f6c84238c814b16fd3
parentde20f087b85e60b0d5aa899141a3349d4d9da80d
Fix bug #6364 with slow scrolling on MS-Windows with bitmap fonts.

 src/w32font.c (g_b_init_get_char_width_32_w): New static var.
 (globals_of_w32font): Zero it out.
 (GetCharWidth32W_Proc): New function pointer.
 (get_char_width_32_w): New function.
 (compute_metrics): If get_glyph_outline_w returns an error, try
 get_char_width_32_w before declaring a failure.  This avoids
 punishing raster (a.k.a. "bitmap") fonts by slowing down
 redisplay.
src/ChangeLog
src/w32font.c