1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 22:28:02 +01:00

fixed icon scaling

This commit is contained in:
kojima
2002-02-15 21:22:46 +00:00
parent f37b4cf5d0
commit c08b3c5f32

View File

@@ -385,7 +385,7 @@ wIconChangeImage(WIcon *icon, RImage *new_image)
if (icon->image)
RReleaseImage(icon->image);
icon->image = wIconValidateIconSize(icon->core->screen_ptr, new_image);
icon->image = new_image;
wIconUpdate(icon);
}
@@ -445,6 +445,8 @@ wIconChangeImageFile(WIcon *icon, char *file)
path = FindImage(wPreferences.icon_path, file);
if (path && (image = RLoadImage(scr->rcontext, path, 0))) {
image = wIconValidateIconSize(icon->core->screen_ptr, image);
wIconChangeImage(icon, image);
} else {
error = 1;