Changeset 3891
- Timestamp:
- 2005年10月01日 22時30分19秒 (3 years ago)
- Files:
-
- trunk/src/ChangeLog.Meadow (modified) (2 diffs)
- trunk/src/mw32term.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ChangeLog.Meadow
r3889 r3891 1 2005-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 1 8 2005-09-27 Masayuki FUJII <boochang@m4.kcn.ne.jp> 2 9 … … 24 31 2005-09-20 Shun-ichi GOTO <gotoh@taiyo.co.jp> 25 32 26 * makefile.mw32-in (ALLOBJS): Removed using of obsoleted macro OBJ2. 33 * makefile.mw32-in (ALLOBJS): Removed using of obsoleted macro 34 OBJ2. 27 35 ($(TEMACS)): Likewise. 28 36 trunk/src/mw32term.c
r3887 r3891 531 531 } 532 532 533 533 /* Draw a hollow rectangle at the specified position. */ 534 void 535 mw32_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 534 554 /*********************************************************************** 535 555 Starting and ending an update … … 1259 1279 { 1260 1280 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); 1263 1283 x += g->pixel_width; 1264 1284 } … … 1322 1342 { 1323 1343 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); 1325 1345 } 1326 1346 else
