aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog19
-rw-r--r--src/mactoolbox.c7
2 files changed, 23 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0a9f3ec9a67..54f1fd65d29 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,22 @@
12008-07-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
4 Depend on macgui.h.
5
6 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8
9 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10 and f19.
11 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12
13 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
15 Remove enumerators.
16
17 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18 Check if FACE_FROM_ID returns NULL.
19
12008-07-07 Chong Yidong <cyd@stupidchicken.com> 202008-07-07 Chong Yidong <cyd@stupidchicken.com>
2 21
3 * image.c (png_load): Use correct bit-depth for setting background 22 * image.c (png_load): Use correct bit-depth for setting background
diff --git a/src/mactoolbox.c b/src/mactoolbox.c
index 45a86135422..f470c517554 100644
--- a/src/mactoolbox.c
+++ b/src/mactoolbox.c
@@ -575,7 +575,7 @@ mac_handle_text_input_event (next_handler, event, data)
575 int hpos, vpos, x, y; 575 int hpos, vpos, x, y;
576 struct glyph_row *row; 576 struct glyph_row *row;
577 struct glyph *glyph; 577 struct glyph *glyph;
578 XFontStruct *font; 578 struct face *face;
579 579
580 f = mac_focus_frame (&one_mac_display_info); 580 f = mac_focus_frame (&one_mac_display_info);
581 w = XWINDOW (f->selected_window); 581 w = XWINDOW (f->selected_window);
@@ -600,9 +600,10 @@ mac_handle_text_input_event (next_handler, event, data)
600 + row->visible_height 600 + row->visible_height
601 + f->top_pos + FRAME_OUTER_TO_INNER_DIFF_Y (f)); 601 + f->top_pos + FRAME_OUTER_TO_INNER_DIFF_Y (f));
602 602
603 font = FACE_FROM_ID (f, glyph->face_id)->font; 603 face = FACE_FROM_ID (f, glyph->face_id);
604 if (font) 604 if (face && face->font)
605 { 605 {
606 XFontStruct *font = face->font;
606 Fixed point_size = Long2Fix (font->mac_fontsize); 607 Fixed point_size = Long2Fix (font->mac_fontsize);
607 short height = row->visible_height; 608 short height = row->visible_height;
608 short ascent = row->ascent; 609 short ascent = row->ascent;