LTCHIPS / rottexpr

A Rise Of The Triad Source Port with additional gameplay options and more...
GNU General Public License v2.0
97 stars 26 forks source link

Higher Resolution support #2

Open LTCHIPS opened 6 years ago

LTCHIPS commented 6 years ago

Currently on the master branch, the maximum resolution that rottexpr supports is 800x600. An ideal way to deal with this would be to calculate locations for things such as HUD elements depending on the resolution being used.

Currently on the newResolutions branch, a good amount of progress has been made on this, however one particular part is quite troubling: setting up the rotation buffer for the screen for...rotating the screen. I ported over all the values for 1024x768 from WinROTT, but it isn't very clear to me how the values are calculated in general. So for now, 320x200, 640x480, 800x600, and 1024x768 all have functioning rotating buffers, anything else doesn't.

LTCHIPS commented 6 years ago

Forgot to comeback to this. The branch newResolutions has been merged into master. The rotating buffer issue described above is still an issue, but in the SDL2Port branch I'm currently trying to rewrite the rotate code using SDL2 functionality, since the old rotate code isn't very well documented, and there's too many arbitrary values to deal with.

LTCHIPS commented 6 years ago

I've decided to merge SDL2Port's contents into master, and am now currently working on a rewrite of the code using various functions included with SDL2. The contents of said code are in branch screeneffects.