mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 09:20:34 +02:00
fixed icon scaling
This commit is contained in:
1 parent
f37b4cf5d0
commit
c08b3c5f32
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user