Changeset 3891

Show
Ignore:
Timestamp:
2005年10月01日 22時30分19秒 (3 years ago)
Author:
miyoshi
Message:

(mw32_draw_rectangle): New function.
(mw32_draw_glyph_string_foreground): Call mw32_draw_rectangle()
instead of Rectangle() to fix #168.
(mw32_draw_composite_glyph_string_foreground): Ditto.

Files:

Legend:

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

    r3889 r3891  
     12005-10-01  MIYOSHI Masanori  <miyoshi@meadowy.org> 
     2 
     3        * mw32term.c (mw32_draw_rectangle): New function. 
     4        (mw32_draw_glyph_string_foreground): Call mw32_draw_rectangle() 
     5        instead of Rectangle() to fix #168. 
     6        (mw32_draw_composite_glyph_string_foreground): Ditto. 
     7 
    182005-09-27  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
    29 
     
    24312005-09-20  Shun-ichi GOTO  <gotoh@taiyo.co.jp> 
    2532 
    26         * makefile.mw32-in (ALLOBJS): Removed using of obsoleted macro OBJ2. 
     33        * makefile.mw32-in (ALLOBJS): Removed using of obsoleted macro 
     34        OBJ2. 
    2735        ($(TEMACS)): Likewise. 
    2836 
  • trunk/src/mw32term.c

    r3887 r3891  
    531531} 
    532532 
    533   
     533/* Draw a hollow rectangle at the specified position.  */ 
     534void 
     535mw32_draw_rectangle (HDC hdc, int x, int y, int width, int height) 
     536
     537  HBRUSH hb, oldhb; 
     538  HPEN hp, oldhp; 
     539 
     540  hb = CreateSolidBrush (GetBkColor (hdc)); 
     541  hp = CreatePen (PS_SOLID, 0, GetTextColor (hdc)); 
     542  oldhb = SelectObject (hdc, hb); 
     543  oldhp = SelectObject (hdc, hp); 
     544 
     545  Rectangle (hdc, x, y, x + width, y + height); 
     546 
     547  SelectObject (hdc, oldhb); 
     548  SelectObject (hdc, oldhp); 
     549  DeleteObject (hb); 
     550  DeleteObject (hp); 
     551
     552 
     553 
    534554/*********************************************************************** 
    535555                    Starting and ending an update 
     
    12591279        { 
    12601280          struct glyph *g = s->first_glyph + i; 
    1261           Rectangle (s->hdc, x, s->y
    1262                      x + g->pixel_width - 1, s->y + s->height - 1); 
     1281          mw32_draw_rectangle (s->hdc, x, s->y, g->pixel_width - 1
     1282                              s->height - 1); 
    12631283          x += g->pixel_width; 
    12641284        } 
     
    13221342    { 
    13231343      if (s->gidx == 0) 
    1324         Rectangle (s->hdc, x, s->y, x + s->width - 1, s->y + s->height - 1); 
     1344        mw32_draw_rectangle (s->hdc, x, s->y, s->width - 1, s->height - 1); 
    13251345    } 
    13261346  else