# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1159260515 0 # Node ID 7156654b0c0644220183e41a19d7f3b96e43e634 # Parent 0f09890f4e36507f84826cea3f52ed9bb5a5a4ba (mac_compute_glyph_string_overhangs, XLoadQueryFont) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds. diff -r 0f09890f4e36 -r 7156654b0c06 src/macterm.c --- a/src/macterm.c Tue Sep 26 04:17:41 2006 +0000 +++ b/src/macterm.c Tue Sep 26 08:48:35 2006 +0000 @@ -2634,6 +2634,11 @@ Rect r; MacFontStruct *font = s->font; +#if USE_CG_DRAWING + mac_prepare_for_quickdraw (s->f); +#endif + SetPortWindowPort (FRAME_MAC_WINDOW (s->f)); + TextFont (font->mac_fontnum); TextSize (font->mac_fontsize); TextFace (font->mac_fontface); @@ -8001,6 +8006,9 @@ FontInfo the_fontinfo; int is_two_byte_font; +#if USE_CG_DRAWING + mac_prepare_for_quickdraw (NULL); +#endif /* Save the current font number used. */ GetPort (&port); #if TARGET_API_MAC_CARBON