mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
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:
parent
9b3c861b6a
commit
8a99aef5bd
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue