1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-28 02:40:46 -08:00
Commit graph

438 commits

Author SHA1 Message Date
Jason Rumney
8b7d0a16b2 * w32term.c (x_query_colors, x_query_color): New functions.
* image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
(svg_load_image): Cast returned pointers from dynamically loaded
functions.  Eliminate W32 specific code.
2009-01-03 11:16:32 +00:00
Jason Rumney
f9c34147fd (x_new_font): Return font object, not fontset. (Bug#119)
Don't block input, as per earlier xterm.c changes.
2009-01-01 02:06:27 +00:00
Martin Rudalics
e2749141d6 In comments, write delete_frame instead of Fdelete_frame. 2008-12-23 07:28:06 +00:00
Chong Yidong
bb9038ffc0 (w32_term_init): Don't initialize the image cache here; it will be
done in init_frame_faces.
2008-12-13 05:40:29 +00:00
Chong Yidong
85bdc6d29e (x_draw_glyph_string): For stretch glyphs, don't call
x_draw_glyph_string_background.
2008-11-15 05:33:17 +00:00
Chong Yidong
e3f81cd557 (x_draw_glyph_string): Stop drawing the background of the next glyph
string once past the overhang width.
2008-11-15 05:20:33 +00:00
Chong Yidong
2f8e69ccca (x_set_frame_alpha): Do nothing if alpha is negative. 2008-11-12 15:51:11 +00:00
Chong Yidong
d3424e67eb (x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw it
with the default glyph width.
2008-10-27 22:20:46 +00:00
Chong Yidong
b89c78a5b7 (x_display_pixel_height, x_display_pixel_width): New functions.
(w32_read_socket, x_calc_absolute_position): Use them.
(w32_initialize_display_info, w32_term_init): Omit removed members
of w32_display_info.
2008-09-18 18:18:12 +00:00
Kenichi Handa
2b107652bf (x_draw_composite_glyph_string_foreground): Adjusted
for the change of struct glyph_string.
(x_draw_glyph_string): Likewise.
2008-08-29 07:57:31 +00:00
Dan Nicolaescu
69ab3201ca * s/ms-w32.h (MULTI_KBOARD): Remove.
* xterm.c:
* xselect.c:
* xfns.c:
* window.c:
* w32term.c:
* w32fns.c:
* terminal.c:
* termhooks.h:
* term.c:
* sysdep.c:
* keyboard.h:
* keyboard.c:
* frame.h:
* frame.c:
* frame.c: Remove references to MULTI_KBOARD, it is now the
default.
* config.in: Regenerate.

* config.nt (MULTI_KBOARD): Remove.

* configure.in (MULTI_KBOARD): Remove.
2008-07-31 02:47:32 +00:00
Jason Rumney
d1f535d29f (w32_enable_unicode_output, cleartype_active): Remove
obsolete display options.
(x_draw_glyph_string_background): Don't use old cleartype_active
workaround.
(w32_initialize): Remove cleartype_active initialization.
(syms_of_w32term): Remove w32_enable_unicode_output initialization.
2008-07-28 18:31:26 +00:00
Jason Rumney
ec7e221c59 (WS_EX_LAYERED): Define if not already. 2008-07-07 10:59:46 +00:00
Jason Rumney
4e179b1957 (x_set_frame_alpha): Fix logic. 2008-06-29 16:12:37 +00:00
Jason Rumney
8b61a89113 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
(pfnSetLayeredWindowAttributes): New function pointer.
(w32_initialize): Initialize it when supported.
(x_set_frame_alpha): New function.

* w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
(w32_frame_parm_handlers): Set alpha handler.

* frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
2008-06-28 23:54:27 +00:00
Glenn Morris
fffa137cb7 American English spelling fix. 2008-06-27 07:34:53 +00:00
Jason Rumney
c35f9821de * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
* w32term.c (x_draw_glyph_string_foreground):
(x_draw_composite_glyph_string_foreground): Sync with xterm.c.
Use FONT_HANDLE macro.
(x_draw_glyph_string): Use FONT_TEXTMETRIC macro.

* w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape):
(uniscribe_encode_char): Use FONT_HANDLE macro.

* w32font.c (Fx_select_font): Use FONT_HANDLE macro.
(w32font_text_extents): Use precast w32_font.
(w32font_close): Free cached metrics.
(w32font_open_internal): Allocate space for name on stack.
2008-06-26 22:11:25 +00:00
Jason Rumney
1b5defe658 * w32bdf.c, w32bdf.h: Remove obsolete files.
* makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.

* w32gui.h: Don't include w32bdf.h.
(XCharStruct, enum w32_char_font_type, W32FontStruct):
Remove obsolete font support.

* w32font.h (struct w32font_info): Remove compat_w32_font.
Add hfont member.
(FONT_COMPAT): Remove obsolete macro.

* w32font.c (w32font_close): Remove compat code. Delete hfont member.
(w32font_encode_char, w32font_text_extents): Use new hfont member.
(w32font_open_internal): Remove compat code. Set new hfont member.
(Fx_select_font): Use new hfont member.

* w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape):
(uniscribe_encode_char): Use new hfont member.

* w32term.c (x_draw_glyph_string_foreground):
(x_draw_composite_glyph_string_foreground): Use new hfont member.
(x_draw_glyph_string): Use metrics in w32font_info.
2008-06-26 10:48:28 +00:00
Jason Rumney
0b07ad98c5 * w32term.c (x_draw_glyph_string_background)
(x_draw_glyph_string): Remove old bdf font code.

* w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
2008-06-23 12:41:50 +00:00
Jason Rumney
db61a7f817 [OLD_FONT]: Remove obsolete font code. 2008-06-20 21:46:05 +00:00
Stefan Monnier
2a3bd2e193 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
x_underline_minimum_display_offset.
(syms_of_xdisp): Declare it here rather than in xterm.c.
* dispextern.h (underline_minimum_offset): Declare it.
* w32term.c (x_draw_glyph_string): Use it.
* xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
(syms_of_xterm): Don't declare it any more.
(x_draw_glyph_string): Adjust to the new name.

* cus-start.el (underline-minimum-offset) Rename from
x-underline-minimum-display-offset.
2008-06-10 20:22:10 +00:00
Jason Rumney
12f718579e (x_make_frame_visible): Use alternate restore flags. 2008-06-09 23:43:45 +00:00
Jason Rumney
a6e0b7e572 (x_draw_glyph_string): Use clipmask if specified. 2008-05-28 16:13:20 +00:00
Kenichi Handa
505ecc4969 (x_draw_glyph_string): Fix calculation of underline
position.
2008-05-25 11:19:50 +00:00
Kenichi Handa
efdf1b43d7 (x_draw_glyph_string): Be sure to draw underline within the current
line area.
2008-05-23 06:11:53 +00:00
Kenichi Handa
71b7654711 (x_draw_glyph_string): Be sure to update
s->underline_thickness and s->underline_position.
2008-05-23 04:43:48 +00:00
Juanma Barranquero
65a6ff8fb5 Fix typo in comment. 2008-05-21 09:25:50 +00:00
Jason Rumney
e5e29349e1 (w32_get_glyph_overhangs): Remove.
(w32_redisplay_interface): Use x_get_glyph_overhangs instead.
2008-05-14 14:40:57 +00:00
Glenn Morris
9ec0b715e2 Switch to recommended form of GPLv3 permissions notice. 2008-05-14 07:50:26 +00:00
Kenichi Handa
ef39ccbbe8 : Throughout the file, delete all USE_FONT_BACKEND
conditionals.  Don't check enable_font_backend.  Delete all codes
used only when USE_FONT_BACKEND is not defined.  Surround non-used
code by "#ifdef OLD_FONT" and "endif".
2008-05-14 00:40:04 +00:00
Jason Rumney
cf907d69dd (w32_compute_glyph_string_overhangs): Compute overhangs
for new font backend and composite cases.
2008-04-09 12:14:52 +00:00
Dan Nicolaescu
73f838adaf * w32term.c: Remove unused include "gnu.h".
* makefile.w32-in (w32term.o): Don't depend on gnu.h

* gnu.h: Rename to ...
* emacs-icon.h: ... this.
* xterm.c: Use emacs-icon.h instead of gnu.h.
* Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
2008-03-03 06:32:13 +00:00
Jason Rumney
2face66975 (x_draw_glyph_string_background): Clear the background
manually when cleartype is in use.
(x_draw_glyph_string_foreground): Draw text transparently when
cleartype is in use.
2008-02-24 15:45:28 +00:00
Stefan Monnier
354884c46e Consolidate the image_cache to the terminal struct.
* termhooks.h (P_): Remove redundant def.
(struct terminal): New field `image_cache'.
* frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
of FRAME_X_IMAGE_CACHE.
* xterm.h (struct x_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
* w32term.h (struct w32_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
* macterm.h (struct mac_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
* xterm.c (x_term_init):
* w32term.c (w32_term_init):
* macterm.c (mac_term_init): Set the image_cache in the terminal.
* dispextern.h (clear_image_cache, forall_images_in_image_cache):
Remove declarations.
(clear_image_caches, mark_image_cache): New declarations.
* xfaces.c (clear_face_cache):
* xdisp.c (redisplay_internal): Use clear_image_caches.
* image.c (clear_image_cache): Don't check that a frame is on
a window-system before checking if it shares the same cache.
(clear_image_caches): New function.
(Fclear_image_cache): Use it.
(mark_image): Move from allo.c.
(mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
* alloc.c (mark_image, mark_image_cache): Move to image.c.
(mark_object): Don't call mark_image_cache for frames.
(mark_terminals): Call mark_image_cache.
2008-02-22 17:42:09 +00:00
Dan Nicolaescu
4624371d9a * configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove code
dealing with obsolete variables.

* fakemail.c (MAIL_PROGRAM_NAME): Remove unused conditional.
(main): Replace MAIL_PROGRAM_NAME with its value.

* src/Makefile.in:
* src/emacs.c:
* src/gmalloc.c:
* src/keyboard.c:
* src/lisp.h:
* src/m/ibm370aix.h:
* src/process.c:
* src/regex.c:
* src/s/hpux.h:
* src/sysdep.c:
* src/sysselect.h:
* src/systty.h:
* src/unexec.c:
* src/w32term.c:
* src/xsmfns.c:
* src/xterm.c: Remove code that deals with obsolete variables.

* s/msdos.h (DONT_NEED_ENVIRON): Don't define.

* ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
nothing else needs it anymore.
2008-02-09 18:03:10 +00:00
Jason Rumney
480cb5d27b (w32_read_socket) <WM_CHAR>: Decode non-Unicode
input in the default locale. Handle non-Unicode multibyte input.
2008-01-30 09:34:49 +00:00
Miles Bader
430d2ee291 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
2008-01-09 01:21:15 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
8cabe764e9 Add 2008 to copyright years. 2008-01-08 04:37:27 +00:00
Miles Bader
d29ee6b1a1 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-300
2007-12-16 05:08:49 +00:00
Miles Bader
47854a5568 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-956
2007-12-16 04:31:49 +00:00
Jason Rumney
2e3566d8b7 (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT for characters above 127. 2007-12-14 12:26:31 +00:00
Kenichi Handa
0c16681f76 (x_draw_composite_glyph_string_foreground): Adjusted
for the change of lispy gstring.
2007-12-01 02:40:49 +00:00
Jason Rumney
a60b033380 (w32_read_socket) [WM_UNICHAR]: Handle as MULTIBYTE_CHAR_KEYSTROKE_EVENT. 2007-11-17 03:00:47 +00:00
Miles Bader
f23d76bdef Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-283
2007-11-11 00:56:44 +00:00
Jason Rumney
4b219faa3b (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
(w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from WM_APPCOMMAND.
2007-11-09 12:20:55 +00:00
Glenn Morris
56dad874f3 Johan Bockg� <bojohan at gnu.org>
(x_draw_stretch_glyph_string): Don't set s->stippled_p here, since it
has already been set by x_set_glyph_string_gc from
x_draw_glyph_string.

http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01571.html
2007-11-01 03:49:22 +00:00
Glenn Morris
b4a638b358 Johan Bockg� <bojohan at gnu.org>
(x_draw_stretch_glyph_string): Don't set s->stippled_p here, since it
has already been set by x_set_glyph_string_gc from
x_draw_glyph_string.

http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01571.html
2007-11-01 03:47:34 +00:00
Miles Bader
18cd1f1a08 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 902-908)

   - Update from CVS
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 131-137)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 261-262)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-278
2007-10-27 09:12:07 +00:00
Stefan Monnier
70b8d0a4a3 Make `window-system' into a keyboard-local variable (rather than
frame-local as done originally by multi-tty).

* startup.el (window-system): Remove.  Don't make it frame-local.

* keyboard.h (struct kboard): Add Vwindow_system.
* keyboard.c (init_kboard): Set a default for Vwindow_system.
(mark_kboards): Mark Vwindow_system.

* dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
(init_display): Don't set the obsolete `window-system' frame-param.

* xterm.c (x_term_init):
* w32term.c (w32_create_terminal):
* term.c (init_tty): Set Vwindow_system.
* macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.

* xfns.c (Fx_create_frame, x_create_tip_frame):
* w32fns.c (Fx_create_frame, x_create_tip_frame):
* macfns.c (Fx_create_frame):
Don't set the obsolete `window-system' frame-param.

* frame.h (Qwindow_system): Remove.
* frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
(Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
2007-10-25 02:38:41 +00:00