mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 22:52:34 +01:00
changes related to plugin system & drawstring
This commit is contained in:
@@ -824,8 +824,13 @@ wIconPaint(WIcon *icon)
|
||||
int l;
|
||||
int w;
|
||||
|
||||
#ifdef DRAWSTRING_PLUGIN
|
||||
tmp = ShrinkString(scr->icon_title_font, icon->icon_name,
|
||||
wPreferences.icon_size-4, NULL);
|
||||
#else
|
||||
tmp = ShrinkString(scr->icon_title_font, icon->icon_name,
|
||||
wPreferences.icon_size-4);
|
||||
#endif
|
||||
w = WMWidthOfString(scr->icon_title_font, tmp, l=strlen(tmp));
|
||||
|
||||
if (w > icon->core->width - 4)
|
||||
|
||||
Reference in New Issue
Block a user