mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-24 00:54:18 +08:00
cleanup
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ to
|
||||
<weight><slant><flipping><other><decoration><rendering>
|
||||
|
||||
Obviously, `<underline>` and `<struckout>` are merged to `<decoration>`
|
||||
in order to keep the styel string is still 6-character long.
|
||||
in order to keep the style string is still 6-character long.
|
||||
|
||||
Now, if you want to use the rendering style SUPIXEL for a TTF font,
|
||||
please define the font name in the following way:
|
||||
|
||||
+6
-6
@@ -4572,7 +4572,7 @@ int _gdi_draw_one_glyph (PDC pdc, Glyph32 glyph_value, BOOL direction,
|
||||
fg_gal_rc.w = bbox.w + italic;
|
||||
fg_gal_rc.h = bbox.h;
|
||||
|
||||
#if 0 // VincentWei: use FS_RENDER_MASK instead (3.4.0)
|
||||
#if 0 // VincentWei: use FS_DECORATE_XXXX instead (3.4.0)
|
||||
if ( pdc->bkmode != BM_TRANSPARENT
|
||||
|| logfont->style & FS_UNDERLINE_LINE
|
||||
|| logfont->style & FS_STRUCKOUT_LINE )
|
||||
@@ -4616,11 +4616,11 @@ int _gdi_draw_one_glyph (PDC pdc, Glyph32 glyph_value, BOOL direction,
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (glyph_bmptype == DEVFONTGLYPHTYPE_MONOBMP
|
||||
&& (logfont->style & FS_RENDER_MASK) == FS_RENDER_OUTLINE) {
|
||||
fg_gal_rc.x--; fg_gal_rc.y--;
|
||||
fg_gal_rc.w += 2; fg_gal_rc.h += 2;
|
||||
}
|
||||
if (glyph_bmptype == DEVFONTGLYPHTYPE_MONOBMP
|
||||
&& (logfont->style & FS_RENDER_MASK) == FS_RENDER_OUTLINE) {
|
||||
bg_gal_rc.x--; bg_gal_rc.y--;
|
||||
bg_gal_rc.w += 2; bg_gal_rc.h += 2;
|
||||
}
|
||||
#endif
|
||||
|
||||
make_back_rect(&rc_back, area, &bg_gal_rc, flag);
|
||||
|
||||
Reference in New Issue
Block a user