raycrasher / Fell-Sky

2d space combat simulator like EV Nova and Transcendence.
MIT License
2 stars 1 forks source link

Fixed mouse input scaling issue when back buffer size and window clie… #21

Closed markgarcia closed 8 years ago

markgarcia commented 8 years ago

…nt size are not equal.

Note: there seems to be a bug in Mono where GameWindow.ClientBounds does not seem to be updated on game startup, only when you move the window will it give out correct values. It seems to use the window size at first and not the actual window client size (without the titlebar and all). This bug will only show on the same cases as the previous bug.

Partially fixes #13.

markgarcia commented 8 years ago

@raycrasher Please review code and test on your side. I've got the problem pretty much pinned down, but there could be some edge cases I didn't notice.