From 8a99aef5bdb2a3d86b22c0de79bbe118c8fb3871 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 23 Apr 2019 08:43:29 +0000 Subject: [PATCH] CtrlLib: ChGtk improved adaptation to UHD mode git-svn-id: svn://ultimatepp.org/upp/trunk@13034 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/ChGtk0.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/uppsrc/CtrlLib/ChGtk0.cpp b/uppsrc/CtrlLib/ChGtk0.cpp index 9c9b4d0c7..9c5f1d0da 100644 --- a/uppsrc/CtrlLib/ChGtk0.cpp +++ b/uppsrc/CtrlLib/ChGtk0.cpp @@ -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; }