[r959] Mouse-controlled Menu is Offset Weirdly

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
NeuralStunner
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE
Contact:

[r959] Mouse-controlled Menu is Offset Weirdly

Post 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
Dean Koontz wrote:Human beings can always be relied upon to exert, with vigor, their God-given right to be stupid.
Spoiler: System Specs
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

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

Post by Graf Zahl »

The reason is that the letterbox offset must be subtracted from the mouse y-coordinate. ZDoom has this problem, too.
User avatar
NeuralStunner
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE
Contact:

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

Post by NeuralStunner »

Ah, good to know. Are you going to fix it here then backport to ZDoom then?

Edit: Guess not. :P
Dean Koontz wrote:Human beings can always be relied upon to exert, with vigor, their God-given right to be stupid.
Spoiler: System Specs
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

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

Post by Graf Zahl »

fixed (in both ports)
User avatar
NeuralStunner
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE
Contact:

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

Post by NeuralStunner »

Awesome, thanks! Glad I could help. :)
Dean Koontz wrote:Human beings can always be relied upon to exert, with vigor, their God-given right to be stupid.
Spoiler: System Specs
User avatar
NeuralStunner
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE
Contact:

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

Post by NeuralStunner »

Hate to bring bad news, but this is still happening in r967. :(

I have no idea if it's even preventable... :?
Dean Koontz wrote:Human beings can always be relied upon to exert, with vigor, their God-given right to be stupid.
Spoiler: System Specs
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

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

Post by Graf Zahl »

I can't reproduce it in any screen resolution I can set so the chance of finding the problems are slim.
User avatar
NeuralStunner
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE
Contact:

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

Post 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?)
Dean Koontz wrote:Human beings can always be relied upon to exert, with vigor, their God-given right to be stupid.
Spoiler: System Specs
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

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

Post 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.
User avatar
NeuralStunner
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE
Contact:

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

Post by NeuralStunner »

Well, at least some good came of this report regardless. :)
Dean Koontz wrote:Human beings can always be relied upon to exert, with vigor, their God-given right to be stupid.
Spoiler: System Specs
Locked

Return to “Closed Bugs”