-
Notifications
You must be signed in to change notification settings - Fork 228
Fix code mining tests on windows if native zoom has value 200 #3563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix code mining tests on windows if native zoom has value 200 #3563
Conversation
|
@travkin79 could you please do me a favor and check if the code minings tests are now also green on your system? |
|
This pull request changes some projects for the first time in this development cycle. An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch. Git patchFurther information are available in Common Build Issues - Missing version increments. |
|
Hi @tobiasmelcher,
Sure, I'll check the tests today. |
|
Hi @tobiasmelcher,
I could also add the stacktraces and screenshots if that helps. P.S.: For some reason, I had some compilation errors at first (see screenshot). I had to revert some of the last changes to make it compile again. Do I have to update or re-configure something? It seems, the API changed.
|
Thanks a lot @travkin79 for the very fast response. Do you know which scaling factor you have set in windows? Which |
It depends on what the GC is created on. A GC on a display is actually problematic as there is no uniform zoom throughout the display anymore (as every monitor has its own zoom). However, in this case you seem to create a GC on a control to copy it's contents. To the best of my knowledge, that should work. But I would expect that you only get a proper result when retrieving the image data of the image passed to Note that there is currently no good, uniform concept for how to test functionality at a specific monitor zoom. Modifying properties like the native zoom of a control or the zoom in One approach that might work is to not modify any zoom data (such as the native zoom of control/GC) but to use |
Thanks a lot for the response @HeikoKlare . The image was only then properly filled after calling |
4d09505 to
60e3195
Compare
|
Hi @tobiasmelcher,
On my machine |
|
I was able to remove the |
Note that this value is not very meaningful on Windows anymore (with monitor-specific scaling). Most of its consumers have been replaced. It is basically only there as a "best guess" for cases where some initial zoom is necessary when initializing something (like a resource). Precisely, this value will be updated whenever a shell is moved to a monitor with a different zoom or if the zoom of a monitor changes. This means, if you have multiple shells, the value of |








No description provided.