dhewm3/neo/renderer
Daniel Gibson c0e8e20628 Nasty hack to show more default resolutions in menu
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.
2015-09-28 16:01:18 +02:00
..
Cinematic.cpp Remove jpeg_memory_src hack that worked around old libjpeg versions 2015-03-22 16:49:26 +01:00
Cinematic.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
draw_arb2.cpp Remove the deprecated nv20 renderer 2012-07-20 00:13:01 +02:00
draw_common.cpp Remove the deprecated arb renderer 2012-07-20 00:13:02 +02:00
GuiModel.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
GuiModel.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Image.h Remove the monochrome hack 2012-07-20 00:13:02 +02:00
Image_files.cpp Remove jpeg_memory_src hack that worked around old libjpeg versions 2015-03-22 16:49:26 +01:00
Image_init.cpp More logging cleanup 2012-07-20 00:12:55 +02:00
Image_load.cpp Remove the monochrome hack 2012-07-20 00:13:02 +02:00
Image_process.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Image_program.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Interaction.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Interaction.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Material.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Material.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
MegaTexture.cpp Get rid of some compiler warnings 2012-11-13 23:24:13 +01:00
MegaTexture.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Model.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Model.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Model_ase.cpp Fix "black box" effect on ase meshes 2012-07-18 19:53:08 +02:00
Model_ase.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Model_beam.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Model_liquid.cpp Fix several bugs from iodoom3 bugtracker 2012-06-02 10:12:22 +02:00
Model_local.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Model_lwo.cpp Fix "unreachable code" warnings 2012-01-15 14:13:44 +01:00
Model_lwo.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
Model_ma.cpp Fix "unreachable code" warnings 2012-01-15 14:13:44 +01:00
Model_ma.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Model_md3.cpp s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
Model_md3.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
Model_md5.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Model_prt.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Model_sprite.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ModelDecal.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ModelDecal.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ModelManager.cpp More logging cleanup 2012-07-20 00:12:55 +02:00
ModelManager.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ModelOverlay.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
ModelOverlay.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
qgl.h Fix dedicated server for Windows 2012-11-12 20:18:00 +01:00
qgl_proc.h Don't link against OpenGL 2012-07-20 16:43:37 +02:00
RenderEntity.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RenderSystem.cpp Remove the deprecated arb renderer 2012-07-20 00:13:02 +02:00
RenderSystem.h Get rid of glConfig.wgl_extensions_string 2012-07-20 00:13:05 +02:00
RenderSystem_init.cpp Nasty hack to show more default resolutions in menu 2015-09-28 16:01:18 +02:00
RenderWorld.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RenderWorld.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RenderWorld_demo.cpp Fix [record|play|time]Demo for x86_64 2012-01-10 22:54:01 +01:00
RenderWorld_load.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RenderWorld_local.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
RenderWorld_portals.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
simplex.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
tr_backend.cpp Get rid of GLimp_EnableLogging 2012-01-02 15:44:00 -05:00
tr_deform.cpp Turn a Warning() in R_FlareDeform into a DPrintf() 2012-01-03 18:14:21 +01:00
tr_font.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_guisurf.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_light.cpp Remove the deprecated arb renderer 2012-07-20 00:13:02 +02:00
tr_lightrun.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_local.h Move GrabInput() and rename to GLimp_GrabInput() 2012-07-20 17:34:34 +02:00
tr_main.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_orderIndexes.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_polytope.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_render.cpp Get rid of glConfig.wgl_extensions_string 2012-07-20 00:13:05 +02:00
tr_rendertools.cpp Get rid of GLimp_EnableLogging 2012-01-02 15:44:00 -05:00
tr_shadowbounds.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_stencilshadow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_subview.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_trace.cpp Use idSys::GetMilliseconds() for idTimer 2011-12-22 10:38:39 +01:00
tr_trisurf.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
tr_turboshadow.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
VertexCache.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
VertexCache.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00