1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-06 05:44:11 +01:00

- Fixed a bug with empty frame titles (Alexey Voinov <voins@voins.program.ru>)

- Added WMGetWidgetBackgroundColor()
- Code cleanup in wtext.c
- Renamed WFANonBold and WFANonEmphasized to WFANotBold and WFANotEmphasized
This commit is contained in:
dan
2002-11-25 04:46:00 +00:00
parent 18b3753227
commit 0fe70d2b4e
10 changed files with 150 additions and 259 deletions

View File

@@ -142,7 +142,7 @@ paintFrame(Frame *fPtr)
fh = view->size.height;
}
if (fPtr->caption!=NULL && fPtr->flags.titlePosition!=WTPNoTitle) {
if (tlen>0 && fPtr->flags.titlePosition!=WTPNoTitle) {
tw = WMWidthOfString(font, fPtr->caption, tlen);
tx = (view->size.width - tw) / 2;