HiDPI support is broken after moving to WxWidgets 3.1.5. The last nightly build that have a better support is 12312. After that the icons started to look very small and do not scale. I have attached screenshots before and after.
OS/Distro? If on linux what is the toolkit. Please copy-paste everything from Help -> About -> Information.
I am using the nightly builds downloaded from sourceforge:
CodeBlocks 12312 (Before) :
Name : Code::Blocks Version : svn-r12312 SDK Version : 2.6.0 Scintilla Version : 3.7.5 Author : The Code::Blocks Team E-mail : info@codeblocks.org Website : http://www.codeblocks.org OS : Windows 10 (build 19042), 64-bit edition Scaling factor : 2.500000 Detected scaling factor : 2.500000 Display PPI : 240x240 Display count : 1 Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[3840,2160]; Primary wxWidgets Library (wxMSW port) Version 3.1.3 (Unicode: wchar_t, debug level: 1), compiled at Jun 7 2020 10:54:43 Runtime version of toolkit used is 10.0.
CodeBlocks 12516 (Broken) :
Name : Code::Blocks Version : svn-r12516 SDK Version : 2.14.0 Scintilla Version : 3.7.5 Author : The Code::Blocks Team E-mail : info@codeblocks.org Website : http://www.codeblocks.org OS : Windows 10 (build 19042), 64-bit edition Scaling factor : 1.000000 Detected scaling factor : 1.000000 Display PPI : 240x240 Display count : 1 Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[3840,2160]; Primary wxWidgets Library (wxMSW port) Version 3.1.5 (Unicode: wchar_t, debug level: 1), compiled at Apr 25 2021 09:56:34 Runtime version of toolkit used is 10.0.
It looks like the scaling-factor was not correctly detected!
Still present with the latest nightly build 12579
Looks like scaling factor is incorrect with wxWidgets 3.1.5 because the value returned by GetContentScaleFactor() was changed in 3.1.4
Fixed in [r12592]
Commit: [r12592]
Thanks
Log in to post a comment.
OS/Distro? If on linux what is the toolkit. Please copy-paste everything from Help -> About -> Information.
I am using the nightly builds downloaded from sourceforge:
CodeBlocks 12312 (Before) :
CodeBlocks 12516 (Broken) :
It looks like the scaling-factor was not correctly detected!
Still present with the latest nightly build 12579
Looks like scaling factor is incorrect with wxWidgets 3.1.5 because the value returned by GetContentScaleFactor() was changed in 3.1.4
Last edit: Miguel Gimenez 2021-12-18
Fixed in [r12592]
Related
Commit: [r12592]
Thanks