dtwm: In CDE we always build with MULTIBYTE support, disable unused singlebyte only
This commit is contained in:
@@ -64,7 +64,6 @@ unsigned int TitleTextHeight (ClientData *pcd)
|
||||
{
|
||||
unsigned int ttextheight;
|
||||
|
||||
#ifndef NO_MULTIBYTE
|
||||
if (DECOUPLE_TITLE_APPEARANCE(pcd))
|
||||
{
|
||||
ttextheight = CLIENT_TITLE_APPEARANCE(pcd).titleHeight;
|
||||
@@ -73,34 +72,6 @@ unsigned int TitleTextHeight (ClientData *pcd)
|
||||
{
|
||||
ttextheight = CLIENT_APPEARANCE(pcd).titleHeight;
|
||||
}
|
||||
#else
|
||||
|
||||
XFontStruct *font;
|
||||
|
||||
if (DECOUPLE_TITLE_APPEARANCE(pcd))
|
||||
{
|
||||
font = CLIENT_TITLE_APPEARANCE(pcd).font;
|
||||
}
|
||||
else
|
||||
{
|
||||
font = CLIENT_APPEARANCE(pcd).font;
|
||||
}
|
||||
|
||||
if (font)
|
||||
{
|
||||
ttextheight = TEXT_HEIGHT(font) + WM_TITLE_BAR_PADDING;
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Failed to load any font! (probably due to error in
|
||||
* font path, toolkit, or resource converter. Set to
|
||||
* arbitrary value for robustness.
|
||||
*
|
||||
*/
|
||||
ttextheight = 16;
|
||||
}
|
||||
#endif
|
||||
return (ttextheight);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user