Resizing GameWindow causes it to move offscreen. #13

Closed
OverworldTheme opened this Issue Dec 5, 2013 · 4 comments

2 participants

@OverworldTheme

Setting the Width property of a GameWindow will cause the window to reposition itself in the upper-left corner of the screen in such a way that the title bar is off the screen. Setting the Height property doesn't seem to do this.

I've only tested this in Windows XP, so I'm not sure if the same behavior affects Vista/7/8, or any other platform.

@thefiddler

Confirmed, investigating.

This only affects the native Windows backend, the SDL2 backend appears to be working correctly. (You can test by copying SDL2.dll from Dependencies/x86 to your application directory.)

@thefiddler thefiddler added a commit that referenced this issue Dec 5, 2013
@thefiddler thefiddler ClientRectangle should not affect window location
Fixes issue #13
f32aee7
@thefiddler

Can you please verify that f32aee7 fixes this issue?

@OverworldTheme

Compiled and tested the fix, and the issue seems to be resolved. Resizing the window is working as expected.

Thanks a lot.

@thefiddler

Thanks for testing, one less bug in the wild.

@thefiddler thefiddler closed this Dec 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment