sfall-team / sfall

sfall - Engine modifications for Fallout 2
https://sfall-team.github.io/sfall/
GNU General Public License v3.0
338 stars 40 forks source link

Fix spaghetti init #508

Closed egornovivan closed 5 months ago

egornovivan commented 5 months ago

https://github.com/sfall-team/sfall/issues/504 It’s no longer possible to do it better in the case where the game exe loads f2_res.dll

egornovivan commented 5 months ago

Can return the condition if (SCR_WIDTH == 0 || SCR_HEIGHT == 0) but it seems to me that this makes little sense

egornovivan commented 5 months ago

As I understand it, f2_res.dll reads settings from f2_res.ini and therefore if we store zeros in the screen resolution there, we will get unpleasant results like 640x480 in some modes. If you don't fix it with hacks, then it's better to leave the current version.


Right now I’ll do a sadomaso version

NovaRain commented 5 months ago
  1. No plan to remove HiResMode switch yet.
  2. Does this "fix" your game scaling problem?

I don't really understand what you mean by "spaghetti init". From your PR the whole Graphics::mode setup is even more like spaghetti than sfall current method IMO.

As for the whole "resolution" settings, the basic principle is:

And using cnc-ddraw takes over the role of GraphicsWidth/GraphicsHeight with its own width/height/fullscreen settings.