1
0
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:
kojima
1999-11-16 00:16:07 +00:00
parent 33b8c225e1
commit 7698ba2f1c
2 changed files with 16 additions and 2 deletions

View File

@@ -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;
}