AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.41k stars 288 forks source link

Code-side window resizing gives wrong results #621

Closed SirePi closed 6 years ago

SirePi commented 6 years ago

Summary

The client window is not resized correctly when resolution changes are applied via code

Probably a side effect of the latest upgrade to OpenTK's last version, since the behavior was not observed before despite having code that actually resized the game's window.

How to reproduce

Just programmatically alter the resolution by changing UserData

Attachments

ilexp commented 6 years ago

This looks like a bug in the AdamsLair.OpenTK dependency (duality-master branch) that could have been introduced in one of these recent commits:

I'm currently suspecting this one, as it also touches window size values. Maybe some code needs to be adjusted to match with the cherry-picked changes.

ilexp commented 6 years ago

It seems like this line from the original commit was applied at the wrong place. @SirePi is currently on a fix for this.

ilexp commented 6 years ago

Fixed by @SirePi, binary release in progress. Package update should be available in about 15 minutes.