summaryrefslogtreecommitdiff
path: root/src/w32fns.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-05-18 11:36:50 +0300
committerEli Zaretskii <eliz@gnu.org>2012-05-18 11:36:50 +0300
commit784b56e25bda24e9c1e0689f1d71d3cf6fe5d552 (patch)
tree1c3514e049c53075ecb594d44fcd3d9f584cd22f /src/w32fns.c
parent6b3868cb1469a6222498dba8220aec9e02d43c1e (diff)
downloademacs-784b56e25bda24e9c1e0689f1d71d3cf6fe5d552.tar.gz
Fix compilation with -DGLYPH_DEBUG=1 on MS-Windows.
src/w32term.c [GLYPH_DEBUG]: Add prototype for x_check_font. (x_check_font) [GLYPH_DEBUG]: New function, copied from xterm.c src/w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: Fix broken reference to image_cache->refcount. (x_create_tip_frame): Fix broken use of FRAME_IMAGE_CACHE.
Diffstat (limited to 'src/w32fns.c')
-rw-r--r--src/w32fns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index a3ccb4ea3e5..f5161117f9d 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -4003,7 +4003,7 @@ unwind_create_frame (Lisp_Object frame)
#if GLYPH_DEBUG
/* Check that reference counts are indeed correct. */
xassert (dpyinfo->reference_count == dpyinfo_refcount);
- xassert (dpyinfo->image_cache->refcount == image_cache_refcount);
+ xassert (dpyinfo->terminal->image_cache->refcount == image_cache_refcount);
#endif
return Qt;
}
@@ -5236,7 +5236,7 @@ x_create_tip_frame (struct w32_display_info *dpyinfo,
#if GLYPH_DEBUG
image_cache_refcount =
- FRAME_IMAGE_CACHE ? FRAME_IMAGE_CACHE (f)->refcount : 0;
+ FRAME_IMAGE_CACHE (f) ? FRAME_IMAGE_CACHE (f)->refcount : 0;
dpyinfo_refcount = dpyinfo->reference_count;
#endif /* GLYPH_DEBUG */
FRAME_KBOARD (f) = kb;