• Eli Zaretskii's avatar
    Attempt to fix hangs on MS-Windows due to C-g · 00ba2267
    Eli Zaretskii authored
    * src/w32uniscribe.c (uniscribe_otf_capability): Set
    inhibit-quit around calls to otf_features, because the latter
    cons Lisp data structures while we are in a critical section.
    * src/xdisp.c (ALLOCATE_HDC) [HAVE_NTGUI]: Set inhibit-quit.
    (RELEASE_HDC) [HAVE_NTGUI]: Restore inhibit-quit.
    (OPTIONAL_HDC, DECLARE_HDC): Remove macros, their job is now
    done by ALLOCATE_HDC and by a single #ifdef.
    (draw_glyphs): Adapt to the above changes in macros.
w32uniscribe.c 37 KB