Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
813 stars 66 forks source link

Supporting higher display resolutions #162

Closed Interrupt closed 6 years ago

Interrupt commented 6 years ago

Trying to debug why running in resolutions over 1920x1080 cause crashes.

Interrupt commented 6 years ago

Main issue here seems to be that mfd_canvas_bits was statically sized and only ever supported enough bytes to support the MFD sizes for screens up to 1024x768. This fix dynamically sizes that byte array when the screen mode changes.

Interrupt commented 6 years ago

This should probably dynamically size those SDL Surfaces created by SetupOffscreenBitmaps, having trouble getting the game to draw again after remaking those right now.