-
Notifications
You must be signed in to change notification settings - Fork 346
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
Upstream 4k/dpi awareness Tool fixes #339
Conversation
Could you rebase this on current master (to get rid of the merge conflicts) and clean it up a bit? |
Hi Daniel, _afxdll: ah yes, MFC ! That is referencing it somewhere, that is why I had a problem with it only when compiling tools |
I will take out the casing . No problem. I will also try to setup Travis to build it so I can catch any other build related things. That hopefully will mitigate some risks. If there is anything I can do to help with 1.5.1 just assign me some bugs and I'll do all that I can. |
Thanks for the offer! Apart from that I'll have to do some work on the mods (https://github.com/dhewm/dhewm3-sdk), like
(but it probably makes most sense if I do the mod-specific stuff myself) |
Oh, another thing that would be nice to have for the next release is #318 |
Yes, let me take those windows specific ones, its my main platform anyway, so i gladly go look at #318 . |
Hi Daniel, I want to create pull requests for the debugger too, but it layers on top of this. Besides that; i see that @turol is refactoring some code which will have impact on the debugger implementation, and i dont want to much divergence :P cheers! |
Right now this branch can't be merged, the first step would be to rebase it onto the current master branch |
Not really refactoring, #369 is pretty much all of it. It's only a draft because I'm not sure it's a good idea and I know you were also doing something to it. My changes are mostly mechanical and I'm fine with you either incorporating them or doing something totally different. |
@DanielGibson first step complete!? |
Can you please rebase it so we don't have all those "merge master into upstream" commits in the history? |
uhm yes! crap! wrong button :S |
not sure what i did wrong now. ( rebase looks correct? )
|
Well that's quite a mess... You're probably better off creating a new branch off the current master and cherry-picking the appropriate commits into it. Also, https://xkcd.com/1597/ |
Lol. yeah well. i "remembered" the revert command ;P I just keep trying to use git as Perforce (Muscle Memory) . But it isnt perforce, and it will never behave like it either, i just have to remember the wise words : "BRANCH FIRST" Yeah, i will cherry pick.. not giving up! |
oh shit, I totally didn't think about this when I just merged #376 - I fear there will be merge conflicts (maybe not though, I didn't check) |
This comment has been minimized.
This comment has been minimized.
I cannot reconcile with this. I really have done a lot of work. So let's try to solve it. If you help me merging this and getting it in, ( rang me up, walk me through it, really. ), so that my git skills are enough to not have to spend so much time getting it upstream again then everybody wins. And then I can finally integrate the debugger too. So frigging proud of that one. Not going to let that go to waste, even that Id guy I asked if it was actually allowed to gpl it (because of raven Software) was impressed. |
I think you almost got it, there's just two extraneous commits remaining. The following should give you a branch without them:
|
This comment has been minimized.
This comment has been minimized.
- Nullptr guard/Crashfix in material editor : meMainFrame can be null when starting immedeatly from commandline.
- Upped windows version ( needs to go back, and a runtime dpi check comes in place ) - Changed warning settings for msvc to confirm latest compilers - Fixed up _afxdll
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.
just as a reminder about that get DPI wrapper
- Use GetDeviceCaps for dpi on anything else than win10.
I added dynamic loading of the dpi getting function to support older windows versions again, see https://github.com/dhewm/dhewm3/commits/tool-dpi-scaling - if that works I'll merge it. Win64 binaries with all this: dhewm3-1.5.2pre-win64-tools-dpiscale.zip |
Whoo ! Very happy with the end result, thx for adding the win 8 method! This is now solid as a rock. 😀 |
these changes are now in master - thanks a lot! :) |
Contains all fixes in tool-land to draw and size all window elements in editor windows when DPI settings are used.
Also contains modified cmaketexts. Only SDL part is important now. Keep added settings off until until integration is comple, or take only the changes in tool.
-H.