1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00

remove default for titlebar_extend_space ( I've removed it so I am not

sure what I just removed ) and change to

#define DEF_WINDOW_TITLE_EXTEND_SPACE "4"
#define DEF_MENU_TITLE_EXTEND_SPACE "4"
#define DEF_MENU_TEXT_EXTEND_SPACE "0"
This commit is contained in:
id
2000-02-24 22:31:00 +00:00
parent 08e7220dfe
commit 2f9eb0703b
4 changed files with 12 additions and 14 deletions

View File

@@ -138,7 +138,7 @@ wFrameWindowUpdateBorders(WFrameWindow *fwin, int flags)
height = fwin->core->height - fwin->top_width - fwin->bottom_width;
if (flags & WFF_TITLEBAR)
theight = WMFontHeight(*fwin->font) + TITLEBAR_EXTRA_HEIGHT + *fwin->title_clearance * 2;
theight = WMFontHeight(*fwin->font) + *fwin->title_clearance * 2;
else
theight = 0;
@@ -476,7 +476,7 @@ updateTitlebar(WFrameWindow *fwin)
int x, w;
int theight;
theight = WMFontHeight(*fwin->font) + TITLEBAR_EXTRA_HEIGHT + *fwin->title_clearance * 2;
theight = WMFontHeight(*fwin->font) + *fwin->title_clearance * 2;
x = 0;
w = fwin->core->width + 1;
@@ -1087,16 +1087,16 @@ wFrameWindowPaint(WFrameWindow *fwin)
proc.drawString(scr->drawstring_func[fwin->flags.state
+ fwin->drawstring_proc_offset]->arg,
fwin->titlebar->window, *fwin->title_gc,
*fwin->font, x, *fwin->title_clearance + TITLEBAR_EXTRA_HEIGHT/2,
*fwin->font, x, *fwin->title_clearance,
fwin->titlebar->width, fwin->top_width, title, titlelen);
} else {
WMDrawString(scr->wmscreen, fwin->titlebar->window,
*fwin->title_gc, *fwin->font, x, *fwin->title_clearance + TITLEBAR_EXTRA_HEIGHT/2,
*fwin->title_gc, *fwin->font, x, *fwin->title_clearance,
title, titlelen);
}
#else
WMDrawString(scr->wmscreen, fwin->titlebar->window,
*fwin->title_gc, *fwin->font, x, *fwin->title_clearance + TITLEBAR_EXTRA_HEIGHT/2,
*fwin->title_gc, *fwin->font, x, *fwin->title_clearance,
title, titlelen);
#endif /* DRAWSTRING_PLUGIN */