summaryrefslogtreecommitdiff
path: root/src/w32term.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement cursor on the left fringe for R2L lines.Eli Zaretskii2010-04-101-2/+4
| | | | | | | | | | | | | | | | | | | | | | | xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the left fringe, not the right one. (set_cursor_from_row): Don't reverse pos_before and pos_after for reversed glyph rows. Set cursor.x to negative value when the cursor might be on the left fringe. (extend_face_to_end_of_line): Append the stretch glyph only if its width is positive. (notice_overwritten_cursor, draw_phys_cursor_glyph) (erase_phys_cursor): For reversed cursor_row, support cursor on the left fringe. w32term.c (w32_draw_window_cursor): For reversed glyph rows, draw cursor on the left fringe. xterm.c (x_draw_window_cursor): For reversed glyph rows, draw cursor on the left fringe. fringe.c (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the left fringe. dispnew.c (update_text_area): Handle reversed desired rows when the cursor is on the left fringe. (set_window_cursor_after_update): Limit cursor's hpos by -1 from below, not by 0, for when the cursor is on the left fringe.
* Remove extern errno declarations.Dan Nicolaescu2010-04-011-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * xterm.c: * xrdb.c: * w32term.c: * unexec.c: * unexaix.c: * sysdep.c: * process.c: * lread.c: * keyboard.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c (main): * ecrt0.c: * dispnew.c: * callproc.c: * buffer.c: Remove errno extern declarations. * s/netbsd.h (NEED_ERRNO): Remove. * movemail.c: * etags.c: * emacsclient.c: Remove extern errno declarations.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Make line<->pixel_y conversion macros aware of native menu/tool bars.YAMAMOTO Mitsuharu2010-01-091-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are placed above the internal border. This supersedes special treatment of native tool bars in the display code. This fixes wrong display position of native menu bars and bogus mouse highlighting of native tool bars, both of which can be found when internal border width is large. Also it fixes wrong flashed part on visible bell with native menu bars. * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro. (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo windows above internal border. * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros. (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo windows above internal border. * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat tool bar windows specially. * xfns.c (x_set_tool_bar_lines): Take account of menu bar height. * xterm.c (x_after_update_window_line): Don't treat tool bar windows specially. (XTflash): Take account of menu bar height. * w32term.c (x_after_update_window_line): Don't treat tool bar windows specially.
* * alloc.c: Do not define struct catchtag.Dan Nicolaescu2009-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
* * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]: PositionJason Rumney2009-07-221-0/+3
| | | | | | | | | IME window at cursor (Bug#2570). (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished. (globals_of_w32fns): Dynamically load functions required above. * w32term.c (w32_draw_window_cursor): Send message to reposition any IME window.
* * w32term.c (w32_initialize): Use standard types.Jason Rumney2009-07-031-1/+1
| | | | | * runemacs.c (set_user_model_id): Use standard types. * emacsclient.c (w32_set_user_model_id): Use standard types.
* bug#1849 - Windows 7 Taskbar SupportJason Rumney2009-06-301-4/+24
| | | | | | | | | | | | | | * w32term.c (w32_initialize): Use GetModuleHandle for library that is already loaded. Set user model ID if supported (bug#1849). * runemacs.c (set_user_model_id): New function. (WinMain): Use it. * emacsclient.c (w32_give_focus): Use GetModuleHandle for library that is already loaded. (w32_set_user_model_id): New function. (main): Use it to associate emacsclient with emacs (bug#1849).
* * w32term.c (x_draw_glyph_string): Use the glyph string's widthChong Yidong2009-06-221-4/+4
| | | | | | | | | rather than its background_width for drawing the overline and underline (Bug#489). * xterm.c (x_draw_glyph_string): Use the glyph string's width rather than its background_width for drawing the overline and underline (Bug#489).
* (w32_initialize): Add necessary casts to last change.Jason Rumney2009-06-211-2/+2
|
* (keyboard_codepage): New static variable.Jason Rumney2009-06-211-10/+29
| | | | | | | | (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it. (w32_read_socket) [WM_CHAR]: Use it to decode character input (bug#3237). (w32_initialize): Initialize it. (codepage_for_locale): New function.
* The following changes fix Bug#3005 for wide glyphs on each platform,Jason Rumney2009-04-191-11/+18
| | | | | | | | | | | | | | | without reintroducing Bug#1258 for stretch glyphs. * xterm.c (x_draw_bar_cursor): Limit cursor width differently for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using get_phys_cursor_geometry. * w32term.c (x_draw_bar_cursor): Limit cursor width differently for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using get_phys_cursor_geometry. * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already correctly calculated.
* (x-use-underline-position-properties): Doc fix.Jason Rumney2009-03-221-3/+1
|
* * w32term.h (WM_EMACS_PAINT): New message.Jason Rumney2009-03-151-1/+1
| | | | | | * w32term.c (w32_read_socket): Use it instead of WM_PAINT. * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT before passing to lisp thread. (Bug#950)
* (x_display_pixel_height, x_display_pixel_width):Jason Rumney2009-02-121-4/+10
| | | | | Release DC when finished. Use NULL window to refer to desktop. (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
* * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:Juanma Barranquero2009-01-301-6/+0
| | | | | * w32term.c (w32_read_socket) [SYNC_INPUT]: Remove; this code is not used on Windows.
* * atimer.c (run_timers, alarm_signal_handler):Juanma Barranquero2009-01-301-0/+4
| | | | | | | * keyboard.c (pending_signals, handle_async_input, init_keyboard): * w32inevt.c (w32_console_read_socket): * w32term.c (w32_read_socket): * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
* (w32_read_socket): Update pending_signals.Chong Yidong2009-01-291-0/+2
|
* Remove unused headerJason Rumney2009-01-091-1/+0
|
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* * w32term.c (x_query_colors, x_query_color): New functions.Jason Rumney2009-01-031-0/+29
| | | | | | * 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.
* (x_new_font): Return font object, not fontset. (Bug#119)Jason Rumney2009-01-011-11/+3
| | | | Don't block input, as per earlier xterm.c changes.
* In comments, write delete_frame instead of Fdelete_frame.Martin Rudalics2008-12-231-1/+1
|
* (w32_term_init): Don't initialize the image cache here; it will beChong Yidong2008-12-131-1/+0
| | | | done in init_frame_faces.
* (x_draw_glyph_string): For stretch glyphs, don't callChong Yidong2008-11-151-1/+4
| | | | x_draw_glyph_string_background.
* (x_draw_glyph_string): Stop drawing the background of the next glyphChong Yidong2008-11-151-1/+2
| | | | string once past the overhang width.
* (x_set_frame_alpha): Do nothing if alpha is negative.Chong Yidong2008-11-121-1/+3
|
* (x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw itChong Yidong2008-10-271-1/+2
| | | | with the default glyph width.
* (x_display_pixel_height, x_display_pixel_width): New functions.Chong Yidong2008-09-181-12/+19
| | | | | | (w32_read_socket, x_calc_absolute_position): Use them. (w32_initialize_display_info, w32_term_init): Omit removed members of w32_display_info.
* (x_draw_composite_glyph_string_foreground): AdjustedKenichi Handa2008-08-291-41/+42
| | | | | for the change of struct glyph_string. (x_draw_glyph_string): Likewise.
* * s/ms-w32.h (MULTI_KBOARD): Remove.Dan Nicolaescu2008-07-311-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* (w32_enable_unicode_output, cleartype_active): RemoveJason Rumney2008-07-281-45/+1
| | | | | | | | 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.
* (WS_EX_LAYERED): Define if not already.Jason Rumney2008-07-071-0/+5
|
* (x_set_frame_alpha): Fix logic.Jason Rumney2008-06-291-1/+1
|
* * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.Jason Rumney2008-06-281-5/+58
| | | | | | | | | | | (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.
* American English spelling fix.Glenn Morris2008-06-271-3/+3
|
* * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.Jason Rumney2008-06-261-35/+18
| | | | | | | | | | | | | | | * 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.
* * w32bdf.c, w32bdf.h: Remove obsolete files.Jason Rumney2008-06-261-13/+16
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * w32term.c (x_draw_glyph_string_background)Jason Rumney2008-06-231-6/+1
| | | | | | (x_draw_glyph_string): Remove old bdf font code. * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
* [OLD_FONT]: Remove obsolete font code.Jason Rumney2008-06-201-835/+0
|
* * xdisp.c (underline_minimum_offset): Rename from xterm.c'sStefan Monnier2008-06-101-0/+1
| | | | | | | | | | | | | 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.
* (x_make_frame_visible): Use alternate restore flags.Jason Rumney2008-06-091-2/+9
|
* (x_draw_glyph_string): Use clipmask if specified.Jason Rumney2008-05-281-2/+4
|
* (x_draw_glyph_string): Fix calculation of underlineKenichi Handa2008-05-251-2/+2
| | | | position.
* (x_draw_glyph_string): Be sure to draw underline within the currentKenichi Handa2008-05-231-0/+6
| | | | line area.
* (x_draw_glyph_string): Be sure to updateKenichi Handa2008-05-231-2/+2
| | | | s->underline_thickness and s->underline_position.
* Fix typo in comment.Juanma Barranquero2008-05-211-5/+5
|
* (w32_get_glyph_overhangs): Remove.Jason Rumney2008-05-141-15/+1
| | | | (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|
* : Throughout the file, delete all USE_FONT_BACKENDKenichi Handa2008-05-141-171/+105
| | | | | | 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".