quakespasm/Quake
Sander van Dijk c8ebc6ce64 Base FOV adapting on screen resolution instead of viewport resolution.
By doing this we still adapt to widescreen resolutions automatically,
but we now keep the horizontal FOV a constant for any given resolution.
E.g. if the aspect of the viewport changes (for instance when the user
changes the statusbar from transparent to solid) we adapt the vertical
FOV instead of the horizontal FOV (like original GLQuake does). For any
4:3 screen resolution quakespasm now behaves the same with or without
fov_adapt set, regardless of viewport size/aspect. This fixes the issue
reported by mh at http://forums.inside3d.com/viewtopic.php?f=1&t=5166.



git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@872 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-12 16:20:38 +00:00
..
anorm_dots.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
anorms.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
arch_def.h updated arch_def.h and net_sys.h from uhexen2. adjusted users accordingly. 2013-01-07 17:30:17 +00:00
bgmusic.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
bgmusic.h some codec stuff syncing with uhexen2 2013-02-27 16:50:25 +00:00
bspfile.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
build_cross_osx.sh - Makefile.darwin: -mmacosx-version-min also needs to be among 2012-09-03 21:21:04 +00:00
build_cross_win32.sh - Makefile.darwin: -mmacosx-version-min also needs to be among 2012-09-03 21:21:04 +00:00
build_cross_win64.sh - Makefile.darwin: -mmacosx-version-min also needs to be among 2012-09-03 21:21:04 +00:00
cd_null.c Made CDAudio_Play() to return success (0) or failure (-1) instead of void. 2011-01-02 18:33:21 +00:00
cd_sdl.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
cdaudio.h Made CDAudio_Play() to return success (0) or failure (-1) instead of void. 2011-01-02 18:33:21 +00:00
cfgfile.c cfgfile.c (CFG_ReadCvars): Also check for ferror(). Use FS_rewind() 2011-12-27 19:40:14 +00:00
cfgfile.h cfgfile.c (CFG_ReadCvars): Also check for ferror(). Use FS_rewind() 2011-12-27 19:40:14 +00:00
chase.c * first shot at cvar flag system and cvar layer clean-ups : 2011-12-28 22:01:33 +00:00
cl_demo.c support for demo recording after connection to server. (thanks to 2013-04-12 09:01:18 +00:00
cl_input.c Some "slowkey" tuning. 2013-02-03 17:22:59 +00:00
cl_main.c some merges from uhexen2: clean up some crap in long chat line support. 2012-10-21 09:55:16 +00:00
cl_parse.c renamed model_t to qmodel_t in order to avoid conflicts on solaris. 2012-05-30 08:56:06 +00:00
cl_tent.c renamed model_t to qmodel_t in order to avoid conflicts on solaris. 2012-05-30 08:56:06 +00:00
client.h some merges from uhexen2: clean up some crap in long chat line support. 2012-10-21 09:55:16 +00:00
cmd.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
cmd.h const correctness changes. 2010-08-29 02:22:55 +00:00
common.c add new stdio replacement FS_fgetc() and use it in snd_mikmod.c. 2013-09-27 19:51:26 +00:00
common.h add new stdio replacement FS_fgetc() and use it in snd_mikmod.c. 2013-09-27 19:51:26 +00:00
conback.c changed makefiles to use 1/0 instead of yes/no for the codec options. 2011-01-12 09:32:22 +00:00
conback.h conback.c, conback.h: added new QuakeSpasm conback data. 2010-02-18 16:45:28 +00:00
console.c rename the modestate_t enum items 2013-02-13 19:07:19 +00:00
console.h some merges from uhexen2: clean up some crap in long chat line support. 2012-10-21 09:55:16 +00:00
crc.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
crc.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
cvar.c - Rename the "Reset defaults" menu option to "Reset config". 2012-01-17 08:25:07 +00:00
cvar.h more cvar cleanups: Added Cvar_LockVar, Cvar_UnlockVar, Cvar_UnlockAll and 2011-12-29 12:28:21 +00:00
d_ifacea.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
detect.sh Updated support for building the OSX versions using Makefile.darwin. Do 2012-08-16 04:51:41 +00:00
draw.h changed makefiles to use 1/0 instead of yes/no for the codec options. 2011-01-12 09:32:22 +00:00
gl_draw.c revert r612, fix VID_Test blackscreen properly 2013-03-02 09:34:18 +00:00
gl_fog.c * first shot at cvar flag system and cvar layer clean-ups : 2011-12-28 22:01:33 +00:00
gl_mesh.c renamed model_t to qmodel_t in order to avoid conflicts on solaris. 2012-05-30 08:56:06 +00:00
gl_model.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
gl_model.h Fixed increased (more than 32) dynamic lights. 2012-07-10 11:21:17 +00:00
gl_refrag.c renamed model_t to qmodel_t in order to avoid conflicts on solaris. 2012-05-30 08:56:06 +00:00
gl_rlight.c Fixed increased (more than 32) dynamic lights. 2012-07-10 11:21:17 +00:00
gl_rmain.c remove isIntelVideo special handling, simply set gl_clear instead 2013-03-02 12:31:09 +00:00
gl_rmisc.c Simplify the Intel video hack, make the PowerVR hack do the same 2013-03-02 13:10:02 +00:00
gl_screen.c Base FOV adapting on screen resolution instead of viewport resolution. 2013-10-12 16:20:38 +00:00
gl_sky.c renamed model_t to qmodel_t in order to avoid conflicts on solaris. 2012-05-30 08:56:06 +00:00
gl_texmgr.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
gl_texmgr.h renamed model_t to qmodel_t in order to avoid conflicts on solaris. 2012-05-30 08:56:06 +00:00
gl_vidsdl.c gl_vidsdl.c: small gamma update. 2013-07-25 09:41:28 +00:00
gl_warp.c renamed model_t to qmodel_t in order to avoid conflicts on solaris. 2012-05-30 08:56:06 +00:00
gl_warp_sin.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
glquake.h Simplify the Intel video hack, make the PowerVR hack do the same 2013-03-02 13:10:02 +00:00
host.c host.c (Host_ShutdownServer): no need to clear the sv structure, because 2012-11-06 08:56:09 +00:00
host_cmd.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
image.c changed many sprintf() calls into q_snprintf(). 2011-12-27 10:50:42 +00:00
image.h constified the name arguments of Image_LoadImage() and Image_WriteTGA() 2011-12-12 12:56:57 +00:00
in_sdl.c updated arch_def.h and net_sys.h from uhexen2. adjusted users accordingly. 2013-01-07 17:30:17 +00:00
input.h added IN_UpdateForKeydest() as a new helper who does stuff if the 2012-10-21 11:33:10 +00:00
keys.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
keys.h renamed Key_ForceDest to Key_UpdateForDest. added M_Menu_Main_f() 2012-10-23 08:44:20 +00:00
main_sdl.c bump default heap size to 72mb and zone size to 512kb in 64 bit builds. 2013-07-09 05:50:04 +00:00
Makefile Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
Makefile.darwin Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
Makefile.w32 Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
Makefile.w64 Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
mathlib.c removed all remaining references to id386 and UNALIGNED_OK because 2011-01-01 12:24:28 +00:00
mathlib.h * mathlib.h (IS_NAN): Fixed strict aliasing violation by providing 2012-03-24 06:24:56 +00:00
menu.c rename the modestate_t enum items 2013-02-13 19:07:19 +00:00
menu.h renamed Key_ForceDest to Key_UpdateForDest. added M_Menu_Main_f() 2012-10-23 08:44:20 +00:00
modelgen.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
net.h Limited the struct qsocket_s details only to net_*.c sources : 2012-04-18 20:33:12 +00:00
net_bsd.c net_win.c, net_sdl.c, net_bsd.c, net_defs.h: removed fixed size from net_drivers 2011-12-18 10:00:36 +00:00
net_defs.h net_win.c, net_sdl.c, net_bsd.c, net_defs.h: removed fixed size from net_drivers 2011-12-18 10:00:36 +00:00
net_dgrm.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
net_dgrm.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_loop.c const correctness changes. 2010-08-29 02:22:55 +00:00
net_loop.h net_loop.h: Tiny whitespace tidy up. 2011-12-18 09:51:28 +00:00
net_main.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
net_sdl.c net_win.c, net_sdl.c, net_bsd.c, net_defs.h: removed fixed size from net_drivers 2011-12-18 10:00:36 +00:00
net_sdlnet.c Updated support for building the OSX versions using Makefile.darwin. Do 2012-08-16 04:51:41 +00:00
net_sdlnet.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_sys.h updated arch_def.h and net_sys.h from uhexen2. adjusted users accordingly. 2013-01-07 17:30:17 +00:00
net_udp.c net_udp.c: Fixed FIONREAD ioctl to take an int* argument instead of 2011-11-12 18:03:49 +00:00
net_udp.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_win.c net_win.c, net_sdl.c, net_bsd.c, net_defs.h: removed fixed size from net_drivers 2011-12-18 10:00:36 +00:00
net_wins.c renamed Sys_FloatTime to Sys_DoubleTime (the thing always returned double 2011-12-12 16:01:01 +00:00
net_wins.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_wipx.c * net_sys.h: revert previous commit undefining EWOULDBLOCK and 2011-01-12 20:10:34 +00:00
net_wipx.h const correctness changes. 2010-08-29 02:22:55 +00:00
pl_linux.c pl_linux.c: add a comment about magenta tranparency 2012-10-01 02:26:44 +00:00
pl_osx.m text pasting support for macosx. updated macosx error dialog procedure. 2012-09-28 20:10:30 +00:00
pl_win.c added PL_GetClipboardData() 2012-09-27 12:58:37 +00:00
platform.h added PL_GetClipboardData() 2012-09-27 12:58:37 +00:00
pr_cmds.c relaxed PF_VarString() warnings a little. 2013-01-06 12:05:34 +00:00
pr_comp.h pr_comp.h, pr_edict.c, progs.h, pr_cmds.c, pr_exec.c: made some of the 2011-12-12 08:56:25 +00:00
pr_edict.c pr_edict.c (PR_ValueString, PR_UglyValueString, PR_GlobalString, 2012-12-11 10:11:22 +00:00
pr_exec.c pr_cmds.c, pr_exec.c, pr_edict.c, sv_main.c: Changed several Sys_Error() 2012-11-15 17:30:43 +00:00
progdefs.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
progdefs.q1 initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
progs.h pr_comp.h, pr_edict.c, progs.h, pr_cmds.c, pr_exec.c: made some of the 2011-12-12 08:56:25 +00:00
protocol.h * client.h: moved usercmd_t structure to protocol.h 2011-12-18 10:03:53 +00:00
q_ctype.h replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
q_sound.h updated snd bits from uhexen2. added signed 8 bit format support 2012-06-25 12:50:09 +00:00
q_stdinc.h replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
qs_bmp.h Simplify the linux icon transparency setting. 2012-09-25 03:07:33 +00:00
quakedef.h bumped version to 0.85.10 in the development tree. 2013-04-12 20:25:45 +00:00
r_alias.c gl_texmgr.c, gl_vidsdl.c: made a lot of functions and variables static. 2011-12-30 14:00:28 +00:00
r_brush.c comment cleanup 2013-02-20 06:22:42 +00:00
r_part.c r_part.c (R_EntityParticles): fix undefined behavior in the loop 2013-03-15 12:47:08 +00:00
r_sprite.c Make 'R_DrawSprite' error messages Con_DPrintf. 2011-11-19 23:33:54 +00:00
r_world.c * cl_demo.c: for a command like "record demoname map [track]", don't 2012-07-18 20:51:35 +00:00
render.h renamed model_t to qmodel_t in order to avoid conflicts on solaris. 2012-05-30 08:56:06 +00:00
resource.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
sbar.c remove isIntelVideo special handling, simply set gl_clear instead 2013-03-02 12:31:09 +00:00
sbar.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
screen.h removed the defunct block_drawing global (btw, it was checked incorrectly 2012-02-10 22:37:07 +00:00
server.h removed unused global host_time 2012-10-12 07:50:45 +00:00
snd_codec.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
snd_codec.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_codeci.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_dma.c updated snd bits from uhexen2. added signed 8 bit format support 2012-06-25 12:50:09 +00:00
snd_flac.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_flac.h added flac music support. 2013-07-21 14:02:06 +00:00
snd_mem.c * snd_codec: store the samplebits value in the snd_info_t struct, 2013-07-22 11:41:14 +00:00
snd_mikmod.c add new stdio replacement FS_fgetc() and use it in snd_mikmod.c. 2013-09-27 19:51:26 +00:00
snd_mikmod.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_mix.c snd_mix.c (SND_InitScaletable): fixed an off-by-one mistake in the 2013-01-11 20:58:08 +00:00
snd_modplug.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_modplug.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_mp3.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_mp3.h * snd_mpg123.c: added new codec for mp3 playback using libmpg123 as 2011-02-14 20:02:52 +00:00
snd_mpg123.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_opus.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_opus.h merged the opus codec support patch 2013-07-18 07:03:11 +00:00
snd_sdl.c snd_sdl.c (SNDDMA_Init): set number of samples to 4096 for sampling rates higher than 56, i.e. 96 kHz. 2013-07-24 09:28:01 +00:00
snd_umx.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
snd_umx.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_vorbis.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_vorbis.h some codec stuff syncing with uhexen2 2013-02-27 16:50:25 +00:00
snd_wave.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_wave.h Backported external music files support using decoder libraries and the 2011-01-05 19:50:43 +00:00
spritegn.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
strl_fn.h added strlcat.c and strlcpy.c: will use them later. 2011-12-27 11:03:39 +00:00
strlcat.c added strlcat.c and strlcpy.c: will use them later. 2011-12-27 11:03:39 +00:00
strlcpy.c added strlcat.c and strlcpy.c: will use them later. 2011-12-27 11:03:39 +00:00
sv_main.c pr_cmds.c, pr_exec.c, pr_edict.c, sv_main.c: Changed several Sys_Error() 2012-11-15 17:30:43 +00:00
sv_move.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
sv_phys.c * first shot at cvar flag system and cvar layer clean-ups : 2011-12-28 22:01:33 +00:00
sv_user.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
sys.h renamed Sys_FloatTime to Sys_DoubleTime (the thing always returned double 2011-12-12 16:01:01 +00:00
sys_sdl_unix.c Updated support for building the OSX versions using Makefile.darwin. Do 2012-08-16 04:51:41 +00:00
sys_sdl_win.c Updated support for building the OSX versions using Makefile.darwin. Do 2012-08-16 04:51:41 +00:00
vid.h gl_vidsdl.c: use SDL_SetGamma() instead of SDL's GammaRamps api. 2013-07-24 07:00:44 +00:00
view.c * first shot at cvar flag system and cvar layer clean-ups : 2011-12-28 22:01:33 +00:00
view.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
wad.c common.c (searchpath_t): Added new member `path_id', an unsigned 2011-01-02 21:45:16 +00:00
wad.h const correctness changes. 2010-08-29 02:22:55 +00:00
world.c renamed model_t to qmodel_t in order to avoid conflicts on solaris. 2012-05-30 08:56:06 +00:00
world.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
wsaerror.h * arch_def.h, net_sys.h, wsaerror.h: New headers, adapted from uhexen2. 2010-06-21 10:55:21 +00:00
zone.c bump default heap size to 72mb and zone size to 512kb in 64 bit builds. 2013-07-09 05:50:04 +00:00
zone.h const correctness changes. 2010-08-29 02:22:55 +00:00