Commit graph

20804 commits

Author SHA1 Message Date
Kim F. Storm
45c1c789a5 *** empty log message *** 2006-03-19 19:59:17 +00:00
Kim F. Storm
3dcef10bbc (set_cursor_from_row): Fix cursor property on overlay string,
so it doesn't associate overlay string with following glyph by default.
Allow integer property value to specify explicit number of buffer
positions associate with overlay string.
2006-03-19 19:38:48 +00:00
Chong Yidong
11aaf44796 * xterm.c (x_display_ok): Fix minor bug and compilation warnings. 2006-03-18 15:41:59 +00:00
Eli Zaretskii
e4d181dcba *** empty log message *** 2006-03-18 15:12:38 +00:00
Eli Zaretskii
c3f5c8258a (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
(LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
(START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
Don't redefine.
2006-03-18 14:52:40 +00:00
Eli Zaretskii
73372e83a8 Don't use unexmips on NetBSD.
(LIBS_MACHINE): Move definition lower, so it doesn't use
LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
2006-03-18 14:52:19 +00:00
Eli Zaretskii
8daaf78be8 [BROKEN_NOCOMBRELOC]: Include assert.h.
(unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc option
is broken (e.g., MIPS/NetBSD).
2006-03-18 14:51:54 +00:00
Eli Zaretskii
7b833ed171 *** empty log message *** 2006-03-18 14:12:32 +00:00
Eli Zaretskii
50f9edc202 (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB. 2006-03-18 14:02:43 +00:00
Eli Zaretskii
7e37c7c001 *** empty log message *** 2006-03-18 13:49:45 +00:00
Eli Zaretskii
a397507469 Add prototype for x_display_ok. 2006-03-18 13:49:11 +00:00
Eli Zaretskii
3c7b6f9f1b (x_display_ok): New function. 2006-03-18 13:48:57 +00:00
Eli Zaretskii
c5e02f73cd (main): If user asks for a display that is unavailable, simulate -nw. 2006-03-18 13:48:33 +00:00
Eli Zaretskii
c85eab3af0 (Fw32_select_font): Doc fix. 2006-03-18 13:30:13 +00:00
YAMAMOTO Mitsuharu
e09ce637d3 (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
Create GWorld in ARGB pixel format.
(mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]: Remove
functions.
(x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
instead of mac_copy_area/mac_copy_area_with_mask.
2006-03-16 08:06:16 +00:00
YAMAMOTO Mitsuharu
c7fea3257f [MAC_OS] (XPutPixel, XGetPixel)
[!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
version when depth is 32.
(mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]: New
function.
(prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
(x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
2006-03-16 08:05:34 +00:00
Juanma Barranquero
364d0cf805 *** empty log message *** 2006-03-15 19:41:35 +00:00
Romain Francoise
875e613d00 Whitespace fixups. 2006-03-15 19:26:08 +00:00
Kim F. Storm
dcb1bc0030 (extend_face_to_end_of_line): Always add space glyph to
empty row.  Fixes memory corruption revealed by 2006-03-02 change.
(display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
(tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
width is exactly the same as the window width.  Don't count a final
empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
2006-03-15 19:02:14 +00:00
Kim F. Storm
b08962806e *** empty log message *** 2006-03-15 19:02:00 +00:00
Juanma Barranquero
713cb18dec *** empty log message *** 2006-03-15 11:20:34 +00:00
Juanma Barranquero
64c374318f (w32_init_fringe, w32_reset_fringes): Restore to being conditional on
HAVE_NTGUI, not WINDOWS_NT.
2006-03-15 10:48:26 +00:00
YAMAMOTO Mitsuharu
ad21830e8f (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
(max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
(mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
(mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
(mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
(x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
instead of mac_draw_bitmap.
(x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
define_fringe_bitmap and destroy_fringe_bitmap.
2006-03-15 07:56:16 +00:00
YAMAMOTO Mitsuharu
bd8ce5da4e (mac_init_fringe) [MAC_OS]: New function. 2006-03-15 07:55:45 +00:00
YAMAMOTO Mitsuharu
ea21ef7859 (mac_init_fringe) [MAC_OS]: Add prototype. 2006-03-15 07:55:36 +00:00
Chong Yidong
8a34117e23 * xterm.c (x_uncatch_errors): Block input for entire function. 2006-03-14 15:38:43 +00:00
Jason Rumney
92cc46af58 *** empty log message *** 2006-03-12 17:20:35 +00:00
Jason Rumney
335be36b8a *** empty log message *** 2006-03-12 17:16:34 +00:00
Jason Rumney
b1bfcb3db7 (Fx_create_frame): Remove call to
Qface_set_after_frame_default. (from xfns.c 2003-05-26)
2006-03-12 17:08:48 +00:00
Jason Rumney
e7b14860d5 (Fx_popup_menu): Call w32_free_menu_strings when
finished with the menu.
2006-03-12 16:29:25 +00:00
Jason Rumney
ab68b375c7 *** empty log message *** 2006-03-12 15:13:38 +00:00
Jason Rumney
d3499758a9 Sync 2005-10-24 xterm.c changes.
(last_mouse_glyph_frame): New var.
(note_mouse_movement): Say mouse moved if current frame differs
from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
(w32_mouse_position): Set last_mouse_glyph_frame.
 Remove OLD_REDISPLAY_CODE block.
2006-03-12 14:56:54 +00:00
YAMAMOTO Mitsuharu
204b78de1b (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
(mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
2006-03-12 08:21:06 +00:00
YAMAMOTO Mitsuharu
4ea08bbf4c (mac_draw_rectangle, x_draw_glyph_string_foreground)
(x_draw_composite_glyph_string_foreground)
(x_draw_image_foreground): Undo previous changes.
(x_draw_hollow_cursor): Likewise.  Subtract 1 from the last
argument of mac_draw_rectangle.
(CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
(mac_draw_string_common, mac_draw_image_string_cg): Use them.
(FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
(mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
[USE_CG_DRAWING]: New functions.
(mac_draw_line, mac_erase_rectangle, mac_clear_window)
(mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
(mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
(mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
(mac_copy_area, mac_scroll_area, x_scroll_bar_create)
(x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
(XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2006-03-12 08:20:37 +00:00
YAMAMOTO Mitsuharu
58826ef713 [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1. 2006-03-12 08:20:24 +00:00
YAMAMOTO Mitsuharu
1599821a5c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c. 2006-03-12 08:19:50 +00:00
YAMAMOTO Mitsuharu
5093b9dc1d (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. 2006-03-12 08:19:42 +00:00
Károly Lőrentey
a9d54793ea (x_icon): Disable redundant call to `x_wm_set_window_state'. 2006-03-12 01:37:34 +00:00
Jason Rumney
f0c947b5a0 (signal_user_input): New function.
(post_character_message): Use it for keyboard input.
(w32_msg_pump): Use it for mouse input.
2006-03-11 23:46:27 +00:00
Jason Rumney
b452fd7aaa *** empty log message *** 2006-03-11 23:45:44 +00:00
Luc Teirlinck
f372bd5b0f *** empty log message *** 2006-03-11 17:00:13 +00:00
Luc Teirlinck
66fe93d1c2 Rename preserve_y to window_scroll_pixel_based_preserve_y.
(window_scroll_pixel_based, syms_of_window): Adapt to above change.
2006-03-11 16:46:38 +00:00
Eli Zaretskii
2c1bd367aa *** empty log message *** 2006-03-11 16:32:09 +00:00
Eli Zaretskii
b48f927687 (w32_wnd_proc): Ignore middle and extra button events if a menu is already
active (the menubar_active flag is on).
2006-03-11 16:31:39 +00:00
Eli Zaretskii
f161146b7e *** empty log message *** 2006-03-11 16:26:31 +00:00
Eli Zaretskii
e6a0d3ebc8 (x_create_tip_frame): Preserve received parms by copying them. 2006-03-11 16:25:36 +00:00
Eli Zaretskii
db3c0e9c35 *** empty log message *** 2006-03-11 16:03:03 +00:00
Eli Zaretskii
16ca622636 Add x_fully_uncatch_errors and x_catching_errors to
the list of unused display error handling functions.
2006-03-11 16:02:38 +00:00
Eli Zaretskii
8887e8ecde *** empty log message *** 2006-03-11 16:01:21 +00:00
Eli Zaretskii
a2a103bbe1 (unwind_to_catch): Call x_fully_uncatch_errors only if HAVE_X_WINDOWS.
(internal_condition_case, internal_condition_case_1)
(internal_condition_case_2): Call x_catching_errors only if HAVE_X_WINDOWS.
2006-03-11 16:00:50 +00:00