mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-27 06:32:27 +00:00
c0e8e20628
the resolutions are really hardcoded in an ugly combination of the values r_mode supports, a string in strings/*.lang ("#str_04222") describing the resolutions r_mode supports ("640x480;800x600;1024x768;1152x864;1280x1024;1600x1200") and a string in mainmenu.gui with the corresponding r_mode values ("3;4;5;6;7;8").. as neither the strings nor mainmenu.gui are GPL'ed I can't really redistribute a changed version of them. So I added lots of resolutions to r_vidModes and wrote two functions that generate the resolutions list string and r_mode value string for the GUI. Then I added a hack in the code that detects when the "window" for the system options ("choiceDef OS2Primary") is created and overwrites the hardcoded strings with custom ones from my new functions. This is tested with both the main game and the official d3xp (Resurrection of Evil) Addon. No idea if it works with other mods, depends on whether they just copied that part of the menu or wrote their own. |
||
---|---|---|
.. | ||
BindWindow.cpp | ||
BindWindow.h | ||
ChoiceWindow.cpp | ||
ChoiceWindow.h | ||
DeviceContext.cpp | ||
DeviceContext.h | ||
EditWindow.cpp | ||
EditWindow.h | ||
FieldWindow.cpp | ||
FieldWindow.h | ||
GameBearShootWindow.cpp | ||
GameBearShootWindow.h | ||
GameBustOutWindow.cpp | ||
GameBustOutWindow.h | ||
GameSSDWindow.cpp | ||
GameSSDWindow.h | ||
GameWindow.cpp | ||
GameWindow.h | ||
GuiScript.cpp | ||
GuiScript.h | ||
ListGUI.cpp | ||
ListGUI.h | ||
ListGUILocal.h | ||
ListWindow.cpp | ||
ListWindow.h | ||
MarkerWindow.cpp | ||
MarkerWindow.h | ||
Rectangle.h | ||
RegExp.cpp | ||
RegExp.h | ||
RegExp_old.h | ||
RenderWindow.cpp | ||
RenderWindow.h | ||
SimpleWindow.cpp | ||
SimpleWindow.h | ||
SliderWindow.cpp | ||
SliderWindow.h | ||
UserInterface.cpp | ||
UserInterface.h | ||
UserInterfaceLocal.h | ||
Window.cpp | ||
Window.h | ||
Winvar.cpp | ||
Winvar.h |