Page 1 of 1

[r959] Mouse-controlled Menu is Offset Weirdly

Posted: Wed Sep 15, 2010 21:31
by NeuralStunner
Image
This image (linked due to size) shows how GZDoom looks when maximized in windowed mode. That black bar at the top doesn't bother me so much, as it's always done that. (The game resolution is 1280x800, screen is 1280x1024). When maximixed, the image always renders pinned to the lower left corner.

Except with the new mouse-controlled menu. My pointer (which you can't see in that picture) is pointing at New Game, however because everything is rendered lower than expected, GZDoom thinks i'm pointing at Game Files. (You can see how it's the same distance.)

Seems like the best thing here would be to force it to render the window in the top left of the window's client area...
Spoiler: System Specs

Re: [r959] Mouse-controlled Menu is Offset Weirdly

Posted: Wed Sep 15, 2010 21:51
by Graf Zahl
The reason is that the letterbox offset must be subtracted from the mouse y-coordinate. ZDoom has this problem, too.

Re: [r959] Mouse-controlled Menu is Offset Weirdly

Posted: Wed Sep 15, 2010 22:49
by NeuralStunner
Ah, good to know. Are you going to fix it here then backport to ZDoom then?

Edit: Guess not. :P

Re: [r959] Mouse-controlled Menu is Offset Weirdly

Posted: Wed Sep 15, 2010 23:13
by Graf Zahl
fixed (in both ports)

Re: [r959] Mouse-controlled Menu is Offset Weirdly

Posted: Wed Sep 15, 2010 23:24
by NeuralStunner
Awesome, thanks! Glad I could help. :)

Re: [r959] Mouse-controlled Menu is Offset Weirdly

Posted: Thu Sep 16, 2010 18:28
by NeuralStunner
Hate to bring bad news, but this is still happening in r967. :(

I have no idea if it's even preventable... :?

Re: [r959] Mouse-controlled Menu is Offset Weirdly

Posted: Mon Oct 04, 2010 17:58
by Graf Zahl
I can't reproduce it in any screen resolution I can set so the chance of finding the problems are slim.

Re: [r959] Mouse-controlled Menu is Offset Weirdly

Posted: Tue Oct 05, 2010 1:10
by NeuralStunner
Hmm, setting ZDoom to 800x600 on a 1024x768 desktop, for instance, should do it. :?

(As an aside: In software the view stretches vertically to fill the client area when maximized, I'm curious whether mouse input is scaled accordingly?)

Re: [r959] Mouse-controlled Menu is Offset Weirdly

Posted: Tue Oct 05, 2010 7:15
by Graf Zahl
I can try any video mode I get, both in fullscreen and windowed, with any forced aspect ratio and it always works for me.

Re: [r959] Mouse-controlled Menu is Offset Weirdly

Posted: Tue Oct 05, 2010 17:03
by NeuralStunner
Well, at least some good came of this report regardless. :)