Changeset 3404

Show
Ignore:
Timestamp:
08/14/04 16:59:11 (4 years ago)
Author:
miyoshi
Message:

(mw32i_update_window_end): Draw fringes.
(mw32_draw_row_bitmaps): Don't draw fringes.
(mw32_draw_window_fringes): New function from Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.1/src/ChangeLog.Meadow

    r3401 r3404  
     12004-08-14  MIYOSHI Masanori  <miyoshi@meadowy.org> 
     2 
     3        * mw32term.c (mw32i_update_window_end): Draw fringes. 
     4        (mw32_draw_row_bitmaps): Don't draw fringes. 
     5        (mw32_draw_window_fringes): New function from Emacs CVS HEAD. 
     6 
    172004-08-14  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    28 
  • branches/2.1/src/mw32term.c

    r3401 r3404  
    456456static int mw32_phys_cursor_in_rect_p P_ ((struct window *, RECT *)); 
    457457static void mw32_draw_row_bitmaps P_ ((struct window *, struct glyph_row *)); 
     458static void mw32_draw_window_fringes (struct window *w); 
    458459static void mw32_draw_vertical_border P_ ((struct window *)); 
    459460static INLINE void take_vertical_position_into_account P_ ((struct it *)); 
     
    829830      /* If we should require GdiFlush(), 
    830831         insert here.  */ 
     832      mw32_draw_window_fringes (w); 
    831833    } 
    832834   
     
    907909       
    908910      BLOCK_INPUT; 
    909       mw32_draw_row_bitmaps (w, desired_row); 
    910911 
    911912      /* When a window has disappeared, make sure that no rest of 
     
    11161117  if (bitmap != NO_BITMAP) 
    11171118    mw32_draw_bitmap (w, row, bitmap); 
     1119} 
     1120 
     1121 
     1122/* Draw the fringes of window W.  Only fringes for rows marked for 
     1123   update in redraw_fringe_bitmaps_p are drawn.  */ 
     1124 
     1125static void 
     1126mw32_draw_window_fringes (struct window *w) 
     1127{ 
     1128  struct glyph_row *row; 
     1129  int yb = window_text_bottom_y (w); 
     1130  int nrows = w->current_matrix->nrows; 
     1131  int y = 0, rn; 
     1132 
     1133  if (w->pseudo_window_p) 
     1134    return; 
     1135 
     1136  for (y = 0, rn = 0, row = w->current_matrix->rows; 
     1137       y < yb && rn < nrows; 
     1138       y += row->height, ++row, ++rn) 
     1139    { 
     1140#if 0 
     1141      if (!row->redraw_fringe_bitmaps_p) 
     1142        continue; 
     1143#endif 
     1144      mw32_draw_row_bitmaps (w, row); 
     1145    } 
    11181146} 
    11191147