mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 22:52:34 +01:00
- added standard colormap support
- made icon images scale in the same proportion as the tiles
This commit is contained in:
12
src/icon.c
12
src/icon.c
@@ -399,7 +399,16 @@ wIconValidateIconSize(WScreen *scr, RImage *icon)
|
||||
|
||||
if (!icon)
|
||||
return NULL;
|
||||
|
||||
|
||||
if (wPreferences.icon_size != 64) {
|
||||
w = wPreferences.icon_size * icon->width / 64;
|
||||
h = wPreferences.icon_size * icon->height / 64;
|
||||
|
||||
tmp = RScaleImage(icon, w, h);
|
||||
RDestroyImage(icon);
|
||||
icon = tmp;
|
||||
}
|
||||
#if 0
|
||||
if (icon->width > wPreferences.icon_size
|
||||
|| icon->height > wPreferences.icon_size) {
|
||||
if (icon->width > icon->height) {
|
||||
@@ -413,6 +422,7 @@ wIconValidateIconSize(WScreen *scr, RImage *icon)
|
||||
RDestroyImage(icon);
|
||||
icon = tmp;
|
||||
}
|
||||
#endif
|
||||
|
||||
return icon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user