Skip to content
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

Taking screenshots on Windows messes up view angle #18

Closed
motorsep opened this issue Jul 5, 2012 · 23 comments
Closed

Taking screenshots on Windows messes up view angle #18

motorsep opened this issue Jul 5, 2012 · 23 comments

Comments

@motorsep
Copy link

motorsep commented Jul 5, 2012

When taking a screenshot on Windows with F12, the view turns left and centers.

Clean install of Doom 3, yesterday's git checkout, Windows XP 32bit.

@dhewg
Copy link
Member

dhewg commented Jul 20, 2012

For the record, this also happens with SDL2.

@motorsep
Copy link
Author

so, where is the issue and is it fixable ? :)

@motorsep
Copy link
Author

Shall we close this issue or is there a solution? :)

@andre-d
Copy link
Contributor

andre-d commented Jul 27, 2012

I keep forgetting to look into this, I will add it to my list.

@dhewg
Copy link
Member

dhewg commented Jul 27, 2012

Yeah, don't just close it.
If anyone beat me, great. I just didn't had the motivation to hunt this win32 specific bug down :P

@motorsep
Copy link
Author

cool stuff, thanks guys :)

@andre-d
Copy link
Contributor

andre-d commented Jul 27, 2012

Oh, windows specific? Ehhhhh, I will have a look at the code but cant test for that.

@motorsep
Copy link
Author

yeah, it only happens on Windows (can't test OS X)

@motorsep
Copy link
Author

and I will test it for you as soon as you can give me patch ! :)

@motorsep
Copy link
Author

motorsep commented Aug 1, 2012

No luck with this issue yet ?

@andre-d
Copy link
Contributor

andre-d commented Aug 1, 2012

I have a hunch about it, when I hit F12 the cursor becomes visible.

@motorsep
Copy link
Author

motorsep commented Aug 1, 2012

well, it becomes visible on Linux too, but on Linux view doesn't move like on Windows

@andre-d
Copy link
Contributor

andre-d commented Aug 1, 2012

Basically its an SDL bug that unhiding the cursor is causing a movement event (IMO).

@motorsep
Copy link
Author

motorsep commented Aug 1, 2012

why wouldn't it move the view on Linux ?

@andre-d
Copy link
Contributor

andre-d commented Aug 1, 2012

Because SDL has different code on X11 than on windows.

@motorsep
Copy link
Author

motorsep commented Aug 1, 2012

ahh, gotcha. Well, if you have a patch, I can test it.

@andre-d
Copy link
Contributor

andre-d commented Aug 1, 2012

Not exactly, the best solution would be to correct the functionality in SDL imo.

@motorsep
Copy link
Author

motorsep commented Aug 1, 2012

hmm.. DarkPlaces uses SDL 1.2.14 and has no issues with screenshots. Btw, I am not using dhewm3 builds with SDL2, I am using a build prior to that. So I am not convinced it's SDL's issue.

@andre-d
Copy link
Contributor

andre-d commented Aug 2, 2012

Darkplaces likely doesnt show/hide the cursor while a screenshot is taken. If you want to work around the bug you can dig into whatever is hiding the cursor and change that.

@motorsep
Copy link
Author

motorsep commented Aug 2, 2012

So basically you are saying the issue is not solvable in the engine?

@andre-d
Copy link
Contributor

andre-d commented Aug 2, 2012

I am saying it is solvable by a workaround.

@motorsep
Copy link
Author

motorsep commented Aug 2, 2012

ahh, ok. So, would you be able to make workaround patch by any chance, please? :)

@DanielGibson
Copy link
Member

see #40

DanielGibson added a commit to DanielGibson/dhewm3 that referenced this issue Oct 6, 2012
On windows un-grabbing (or possibly re-grabbing) the mouse seems to
mess up the view angly (view is centered afterwards), see
dhewm#18
That's fixed by not releasing the mouse (there is no reason to do that
anyway).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants