aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-10-08 02:29:25 +0000
committerYAMAMOTO Mitsuharu2005-10-08 02:29:25 +0000
commit61e62f5f738f8a195c11daf061ba165f9adf2d0b (patch)
tree56d9a32c7af90fd1e0f7ed55a9d5399ef5cf303c /src
parent9dc9af1b8bcc976818b84bff133d9f5dd0d3ce0f (diff)
downloademacs-61e62f5f738f8a195c11daf061ba165f9adf2d0b.tar.gz
emacs-61e62f5f738f8a195c11daf061ba165f9adf2d0b.zip
(x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT. Add debug code.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog36
-rw-r--r--src/xfaces.c6
2 files changed, 42 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 74244702feb..d466f5d3bf2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,39 @@
12005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * macgui.h (MAX_CLIP_RECTS): New define.
4 (struct _XGC): New member clip_region.
5 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
6 clip_rects.
7
8 * macterm.c (GC_CLIP_REGION): New macro.
9 (saved_port_clip_region): New variable.
10 (mac_begin_clip, mac_end_clip): New functions.
11 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
12 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
13 (mac_copy_area_with_mask, mac_scroll_area): Use them.
14 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
15 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
16 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
17 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
18 rectangles stored in gc.
19 (XFreeGC): Dispose clipping region.
20 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
21 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
22 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
23 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
24 (x_draw_bar_cursor): Use them.
25 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
26 get multiple clipping rectangles.
27
28 * macterm.h (mac_term_init): Add types to extern.
29 (struct mac_output): Remove members mWP and pending_menu_activation.
30 Put members scroll_bar_foreground_pixel and
31 scroll_bar_background_pixel in #if 0.
32 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
33
34 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
35 Add debug code.
36
12005-10-08 Kim F. Storm <storm@cua.dk> 372005-10-08 Kim F. Storm <storm@cua.dk>
2 38
3 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04. 39 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
diff --git a/src/xfaces.c b/src/xfaces.c
index 49ba6d334ec..f13fdf74909 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -790,7 +790,10 @@ x_create_gc (f, mask, xgcv)
790 XGCValues *xgcv; 790 XGCValues *xgcv;
791{ 791{
792 GC gc; 792 GC gc;
793 BLOCK_INPUT;
793 gc = XCreateGC (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), mask, xgcv); 794 gc = XCreateGC (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), mask, xgcv);
795 UNBLOCK_INPUT;
796 IF_DEBUG (++ngcs);
794 return gc; 797 return gc;
795} 798}
796 799
@@ -799,7 +802,10 @@ x_free_gc (f, gc)
799 struct frame *f; 802 struct frame *f;
800 GC gc; 803 GC gc;
801{ 804{
805 BLOCK_INPUT;
806 IF_DEBUG (xassert (--ngcs >= 0));
802 XFreeGC (FRAME_MAC_DISPLAY (f), gc); 807 XFreeGC (FRAME_MAC_DISPLAY (f), gc);
808 UNBLOCK_INPUT;
803} 809}
804 810
805#endif /* MAC_OS */ 811#endif /* MAC_OS */