CtrlLib: ChGtk improved adaptation to UHD mode

git-svn-id: svn://ultimatepp.org/upp/trunk@13034 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-04-23 08:43:29 +00:00
parent 9b3c861b6a
commit 8a99aef5bd

View file

@ -245,6 +245,14 @@ Image GetGTK0(GtkWidget *widget, int state, int shadow, const char *detail, int
if(chgtkspy__)
chgtkspy__(G_OBJECT_TYPE_NAME(widget), state, shadow, detail, type, cx, cy, sLastImage);
#if 1
if(findarg(type & 15, GTK_CHECK, GTK_OPTION, GTK_ICON) >= 0 &&
IsUHDMode() &&
sLastImage.GetWidth() < 23)
sLastImage = Upscale2x(sLastImage);
#endif
return sLastImage;
}