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:
@@ -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