Changeset 3069

Show
Ignore:
Timestamp:
04/10/03 07:43:51 (6 years ago)
Author:
miyoshi
Message:

(mw32_draw_glyphs): Don't call
notice_overwritten_cursor().
Simplify redundant expressions.
(mw32_draw_hollow_cursor): Enlarge a hollow box cursor.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • work/cvs2svn/src/ChangeLog.Meadow

    r3067 r3069  
     12003-04-10  MIYOSHI Masanori  <miyoshi@boreas.dti.ne.jp> 
     2 
     3        * mw32term.c (mw32_draw_glyphs): Don't call 
     4        notice_overwritten_cursor(). 
     5        Simplify redundant expressions. 
     6        (mw32_draw_hollow_cursor): Enlarge a hollow box cursor. 
     7 
    182003-04-03  MIYOSHI Masanori  <miyoshi@boreas.dti.ne.jp> 
    29 
     
    4047 
    4148        * mw32font.c (Vmw32_windows_font_charset_database): Removed. 
    42         (mw32_windows_set_logical_font_from_char): Now it takes a Emacs char 
     49        (mw32_windows_set_logical_font_from_char): Now it takes an Emacs char 
    4350        not a charset of Windows LOGFONT. 
    44         (mw32_set_windows_logical_font): It takes a Emacs char as well, and 
     51        (mw32_set_windows_logical_font): It takes an Emacs char as well, and 
    4552        pass it to mw32_windows_set_logical_font_from_char. 
    4653        (mw32_load_lf_from_lisp_object): Likewise, but pass it to 
     
    147154        (Fmw32_mci_get_error_string): Likewise. 
    148155 
    149         * mw32term.c (mw32_message_loop<MM_MCINOTIFY>): Simplify redundunt 
     156        * mw32term.c (mw32_message_loop<MM_MCINOTIFY>): Simplify redundant 
    150157        expressions, and avoid using kbd_buffer_store_event(). 
    151158 
     
    171178        * termhooks.h (enum event_kind): Add mw32_mci_event. 
    172179 
    173         * mw32term.c (mw32_message_loop): Generate a Emacs event when 
     180        * mw32term.c (mw32_message_loop): Generate an Emacs event when 
    174181        MM_MCINOTIFY is notified. 
    175182 
  • work/cvs2svn/src/mw32term.c

    r3065 r3069  
    49604960    } 
    49614961 
     4962  /* The following codes cause the garbage at the cursor position. 
     4963     Farther investigation into these is needed. 
     4964   */ 
     4965#if 0 
    49624966  if (area == TEXT_AREA 
    49634967      && !row->full_width_p 
     
    49734977      x1 = FRAME_TO_WINDOW_PIXEL_X (w, x1); 
    49744978       
    4975       if (!row->full_width_p && XFASTINT (w->left_margin_width) != 0) 
     4979      if (XFASTINT (w->left_margin_width) != 0) 
    49764980        { 
    49774981          int left_area_width = window_box_width (w, LEFT_MARGIN_AREA); 
     
    49834987                                 row->y, MATRIX_ROW_BOTTOM_Y (row)); 
    49844988    } 
     4989#endif 
    49854990   
    49864991  /* Value is the x-position up to which drawn, relative to AREA of W. 
     
    91039108     rectangle as wide as the glyph, but use a canonical character 
    91049109     width instead.  */ 
    9105   wd = cursor_glyph->pixel_width - 1
     9110  wd = cursor_glyph->pixel_width
    91069111  if (cursor_glyph->type == STRETCH_GLYPH 
    91079112      && !mw32_stretch_cursor_p) 
     
    91289133    SelectObject (hdc, hb); 
    91299134    mw32_clip_to_row (hdc, w, row, 0); 
    9130     Rectangle (hdc, x, y, x + wd - 1, y + h - 1); 
     9135    Rectangle (hdc, x, y, x + wd, y + h); 
    91319136    RestoreDC (hdc, -1); 
    91329137    DeleteObject (hp); 
     
    93249329       
    93259330      mw32_clear_area (f, x, y, 
    9326                        x + cursor_glyph->pixel_width - 1
    9327                        y + cursor_row->visible_height - 1); 
     9331                       x + cursor_glyph->pixel_width
     9332                       y + cursor_row->visible_height); 
    93289333    } 
    93299334   
     
    94699474    mw32_erase_phys_cursor (w); 
    94709475 
    9471   /* If the cursor is now invisible and we want it to be visible, 
    9472      display it.  */ 
    9473   if (on && !w->phys_cursor_on_p) 
     9476  /* Don't check phys_cursor_on_p here because that flag is only set 
     9477     to zero in some cases where we know that the cursor has been 
     9478     completely erased, to avoid the extra work of erasing the cursor 
     9479     twice.  In other words, phys_cursor_on_p can be 1 and the cursor 
     9480     still not be visible, or it has only been partly erased.  */ 
     9481  if (on) 
    94749482    { 
    94759483      w->phys_cursor_ascent = glyph_row->ascent;