Commit graph

230 commits

Author SHA1 Message Date
Bradley Bell 81996c4811 remove some redundancy by not needing to do SoundSlots[i].playing = 0; in addition to DS_release_slot. Also clean up some indenting of DS_release_slot calls. And make DS_release_slot return 1 when a sound is already not playing, in addition to when a sound was killed. (d1x r1.10) 2004-05-22 07:42:18 +00:00
Bradley Bell 80bbbb6a7e fix crash/hang when using -nojoystick in linux version (d1x r1.5) 2004-05-22 07:31:38 +00:00
Bradley Bell d9b48e875d use JOY_NUM_AXES instead of 4 in joy_(get|set)_cal_vals (d1x r1.3, r1.4) 2004-05-22 01:40:14 +00:00
Bradley Bell 84c8953ddb patch from Steven Mueller for using more than 4 joystick devices in linux (d1x r1.3, r1.3, r1.3) 2004-05-22 01:32:13 +00:00
Bradley Bell f459fd912b digisound fixes (d1x r1.7) 2004-05-22 00:50:42 +00:00
Bradley Bell 6469a06ecb dos gcc 2.95 asm fixes (d1x r1.2) 2004-05-21 01:31:49 +00:00
Bradley Bell ee7e591823 added new arg and printfs for mouse driver problems (d1x r1.2, r1.2) 2004-05-21 00:48:14 +00:00
Bradley Bell 4e862e361b fix a couple of defines 2004-05-20 23:38:20 +00:00
Bradley Bell a147d6d25d fixed the config bug where it'd always put in some weird axis (d1x r1.3) 2004-05-20 23:10:17 +00:00
Bradley Bell 1cececd6e1 set win32 icon to icon from resource file 2004-05-20 23:06:24 +00:00
Bradley Bell 153e29b049 win32: fixed space key not working in messages (d1x r1.2) 2004-05-20 22:53:53 +00:00
Bradley Bell cde8b4c703 w32: check -no(mouse|joystick) within respective _init() funcs (d1x r1.2, r1.6) 2004-05-20 19:02:58 +00:00
Bradley Bell af46f29a9a fixed win32 gr_*_mode funcs that I forgot to change the arg type for (d1x r1.5) 2004-05-20 18:48:44 +00:00
Bradley Bell 4e39740519 altsounds (d1x r1.6) 2004-05-20 09:17:18 +00:00
Bradley Bell 7e8d7d298c fixed a major memory leak and removed a bit of redundancy (d1x r1.5) 2004-05-20 08:29:58 +00:00
Bradley Bell 7b1c66d2a1 call digi_reset_digi_sounds in digi_close to fix crashing (d1x r1.4) 2004-05-20 08:23:08 +00:00
Bradley Bell 1e9f0618f2 win32's digi_start_sound was not calling DS_release_slot after setting .playing=0, resulting in a memleak. Thanks to Stefan Ring for catching this (d1x r1.9) 2004-05-20 08:07:44 +00:00
Bradley Bell d4236338d8 remove joySetCapture in win32 joystick code, apparently it was somehow causing some joysticks (Sidewinder Precision 2) to only turn when the stick was moving, but not when at turned but held stationary. And it was completely unused anyway. Thanks to Stefan Ring for (somehow) finding this 2004-05-20 08:03:39 +00:00
Bradley Bell b15d0296d8 minor cleanup, use same for loop for filling r, g, and b values (d1x r1.15) 2004-05-20 07:49:21 +00:00
Bradley Bell a47da9acb6 fix funky ogl gammaramp palette when getting hit sometimes (didn't handle negative palette steps) (d1x r1.34) 2004-05-20 07:47:28 +00:00
Bradley Bell 5177356ea0 add caching of weapon inner models, screen shatter effects, robot explosions and weapons, and some more always present stuff. Also clean up ogl_cache_weapon_textures calling. (d1x r1.37) 2004-05-20 07:43:57 +00:00
Bradley Bell 1de277460d add -renderstats command-line arg to activate RENDERSTATS (d1x r1.36, r1.15, r1.33) 2004-05-20 07:25:22 +00:00
Bradley Bell fa4b1da8b7 fix last commit (d1x r1.35) 2004-05-20 07:16:53 +00:00
Bradley Bell ca09768f00 add RENDERSTATS counter for number of textures loaded after texture caching stage (d1x r1.34) 2004-05-20 07:13:20 +00:00
Bradley Bell 794d1749a7 use GL_INDEX_BITS to get bpp for color buffer for renderstats (d1x r1.33) 2004-05-20 07:02:54 +00:00
Bradley Bell ad42e7c895 add anisotropic texture filtering suport (d1x r1.33, r1.32, r1.23, r1.32) 2004-05-20 05:16:21 +00:00
Bradley Bell 730b28ef61 make RENDERSTATS show size of color/depth buffer too (d1x r1.31) 2004-05-20 05:02:53 +00:00
Bradley Bell 12a67e5014 utilize hardware multitexturing support if possible (requires GL_NV_texture_env_combine4 extension) (d1x r1.32, r1.30, r1.4, 1.22) 2004-05-20 03:31:36 +00:00
Bradley Bell 380f586bd8 add ogl_setbrightness_internal stub for glx (d1x r1.17) 2004-05-20 02:15:15 +00:00
Bradley Bell b49dc3439f implement SetGammaRamp on WGL (d1x r1.14) 2004-05-20 02:13:13 +00:00
Bradley Bell 130ac9dfb4 implement brightness/palette effects in OGL using SetGammaRamp, much faster than the hack that was being used. currently SDL only (though not too hard to add to WGL, not as easy as sdl) (d1x r1.31, r1.3, r1.13, r1.21) 2004-05-20 02:04:30 +00:00
Bradley Bell 3dfcdca415 add -gl_trilinear OGL command-line option (d1x r1.27) 2004-05-19 22:16:38 +00:00
Bradley Bell 6f9c8a6216 needs to include args.h now (d1x r1.9) 2004-05-19 19:20:16 +00:00
Bradley Bell a8dfe48d9f implement -nomusic for linux hmiplay (d1x r1.8) 2004-05-19 19:15:05 +00:00
Bradley Bell 7d3ab4a139 correct linux hmiplay handling of midi 0 volume song stop/starting (d1x r1.7) 2004-05-19 19:04:41 +00:00
Bradley Bell 70f9cbf8c6 remove needless sleep on linux hmiplay startup (d1x r1.6) 2004-05-19 07:00:57 +00:00
Bradley Bell c3744616ae fix off by .5 errors in ogl_upixelc and ogl_ulinec (d1x r1.29) 2004-05-19 03:47:03 +00:00
Bradley Bell 693717b603 fix ogl gr_ucircle (d1x r1.29) 2004-05-19 03:41:58 +00:00
Bradley Bell 217f1a7e91 fix off-by-one error in ogl_urect, right and bottom are inclusive not exclusive (d1x r1.28) 2004-05-19 03:35:48 +00:00
Bradley Bell 369a375f5f fix briefing spinning robot display in OGL (d1x r1.28, r1.20, r1.2) 2004-05-19 03:29:04 +00:00
Bradley Bell 237094095c fix typo 2004-05-19 03:13:44 +00:00
Bradley Bell c352a2a1f4 move win32 window creation code from arch_init_start to arch_init to fix weirdness with --help (d1x r1.5, r1.6) 2004-05-19 02:39:21 +00:00
Bradley Bell 314853ff03 apply patch from bluecow to fix hmiplay sync issues and lack of midi reset (d1x r1.5) 2004-05-19 02:30:05 +00:00
Bradley Bell 3eccfad0f2 fix crash on exit if sounds are still playing (d1x r1.8) 2004-05-19 02:23:56 +00:00
Bradley Bell 775969a0c2 Fix mismatched arg types in the win32 code (d1x r1.7) 2004-05-19 02:18:19 +00:00
Bradley Bell 12ad7d63cd Fix mismatched arg types in the win32 code (d1x r1.12) 2004-05-19 02:14:17 +00:00
Bradley Bell 60ffd8b3c9 fix problems with msgbuf struct not being defined (d1x r1.4) 2004-05-19 02:02:42 +00:00
Bradley Bell 4d42c78ea3 updated SDL include path (d1x r1.3) 2004-05-19 01:59:14 +00:00
Martin Schaffner 06a9dab20e move ogl-internal stuff from ogl interface header to new file internal.h 2004-05-16 00:45:25 +00:00
Martin Schaffner 3404f75996 fix joystick_read_raw_axis(), define and use gr_remap_mono_font(),
limit homing missile turn rate
2004-05-15 16:25:35 +00:00