storm-devs / storm-engine

Game engine behind Sea Dogs, Pirates of the Caribbean and Age of Pirates games.
https://storm-devs.github.io/storm-engine
GNU General Public License v3.0
847 stars 120 forks source link

core: add search for a suitable aspect ratio for PC_SCREEN interface #450

Closed q4a closed 1 year ago

q4a commented 1 year ago

The search is performed on sections named PCSCREEN$W:$H, where $W:$H can be 5:4, 4:3, 16:10, 16:9, 21:9 or other. The aspect ratio of game window may not match exactly, but it should fit in +3%/-3% of the aspect ratio = $W:$H.

If suitable PCSCREEN$W:$H was not found, then fallback to default PC_SCREEN section.