-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Added Win32 Monitor Configuration API and demo #332
Conversation
@@ -9,6 +9,7 @@ Features | |||
-------- | |||
* Updated AIX natives and build - [@twall](https://github.com/twall). | |||
* [#290](https://github.com/twall/jna/pull/290): Improved the stacktrace for the exceptions thrown by `com.sun.jna.Structure` - [@ebourg](https://github.com/ebourg). | |||
* Added Win32 Monitor Configuration API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the syntax of other CHANGELOG entries, copy from above. Thx.
This is good work. However, all these new functions need tests to be merged. A demo is not good enough :) Minor: I am not convinced FlagEnum and EnumConverter should live where they are, I am worried that Something with tabs/spaces that looks off, there's a lot of them and things are aligned the same way. Maybe run some automatic formatter on this? Would be nice to fix. |
Thanks - I updated the PR:
|
return 0; // stop | ||
} | ||
}, new LPARAM(0)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we assert something in this test? For example that you have at least one monitor? Then, each one of the Dxva functions should also be an actual test. For example, GetMonitorCapabilities returns some values in temps
and caps
, assert that they are not 0 for example.
I split the tests into smaller ones and added asserts where possible. |
Good work. Merged via bf870bb (you might want to squash your own commits, I try to keep things tidier on merge). |
Thanks! I would throw out my master branch and create a new from yours. Should have the same effect, right? |
You should definitely reset your master to the upstream master, first. I usually do this by doing a I always work on branches. When I make small changes, I |
PLease let me understand the background of your mail. I`m I using a outdated code base? I just want to avoid overwriting my changes. Gesendet: Montag, 26. Mai 2014 um 12:58 UhrVon: "Daniel Doubrovkine (dB.) @dblockdotorg" [email protected]: twall/jna [email protected]: Re: [jna] Added Win32 Monitor Configuration API and demo (#332) You should definitely reset your master to the upstream master, first. I usually do this by doing a git reset --hard a few commits back, then git pull upstream master, then a force push of git push origin master -f. (If you have changes on master that need to be saved first, git checkout -b some-new-branch, then git checkout master first). I always work on branches. When I make small changes, I git commit --amend them, sometimes force push. No fear :) — |
@dblock Are you sure you are meaning me? I`ve not commited this commit request. Please let me know if there was a mistake. |
I meant this for @msteiger. |
I think I figured it out - thanks! |
I'm seeing this on my box now after this PR was merged:
|
Fixed in de798fd. |
Motivation: jabba is not updated anymore, let's use sdkman for JDK installation Modifications: - Switch to sdkman - Update to latest JDK8 release Result: Be able to use latest JDK version again
This adds the Windows Monitor Configuration API methods and structures. I tested the port with a small monitor demo which is also part of this PR. It enumerates all monitors and displays their caps.