mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 06:38:05 +01:00
fixed icon scaling
This commit is contained in:
@@ -385,7 +385,7 @@ wIconChangeImage(WIcon *icon, RImage *new_image)
|
|||||||
if (icon->image)
|
if (icon->image)
|
||||||
RReleaseImage(icon->image);
|
RReleaseImage(icon->image);
|
||||||
|
|
||||||
icon->image = wIconValidateIconSize(icon->core->screen_ptr, new_image);
|
icon->image = new_image;
|
||||||
|
|
||||||
wIconUpdate(icon);
|
wIconUpdate(icon);
|
||||||
}
|
}
|
||||||
@@ -445,6 +445,8 @@ wIconChangeImageFile(WIcon *icon, char *file)
|
|||||||
path = FindImage(wPreferences.icon_path, file);
|
path = FindImage(wPreferences.icon_path, file);
|
||||||
|
|
||||||
if (path && (image = RLoadImage(scr->rcontext, path, 0))) {
|
if (path && (image = RLoadImage(scr->rcontext, path, 0))) {
|
||||||
|
image = wIconValidateIconSize(icon->core->screen_ptr, image);
|
||||||
|
|
||||||
wIconChangeImage(icon, image);
|
wIconChangeImage(icon, image);
|
||||||
} else {
|
} else {
|
||||||
error = 1;
|
error = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user