aboutsummaryrefslogtreecommitdiffstats
path: root/code/sdl
Commit message (Collapse)AuthorAgeFilesLines
* Allow optional window resizing.icculus2009-09-142-0/+29
| | | | | | | Fixes Bugzilla #2844. git-svn-id: svn://svn.icculus.org/quake3/trunk@1594 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix warning in cl_main.ctma2009-09-141-16/+20
| | | | | | * Fix bug #4026 (SDL dx backend doesn't work on some machines) git-svn-id: svn://svn.icculus.org/quake3/trunk@1586 edf5b092-35ff-0310-97b2-ce42778d08ea
* See here:zakk2009-06-131-0/+6
| | | | | | | http://bugzilla.icculus.org/show_bug.cgi?id=4064 git-svn-id: svn://svn.icculus.org/quake3/trunk@1573 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Add Com_HexStrToInttma2008-09-051-29/+45
| | | | | | | | | | * Fixed some whacky indentation in q_shared.c * Allow single character keys e.g. 'c' to be used in cl_consoleKeys in addition to ASCII characters * Experimental code to ignore dead keys git-svn-id: svn://svn.icculus.org/quake3/trunk@1470 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Update IN_IsConsoleKey so that specifying ascii values/characters for thetma2008-08-301-10/+52
| | | | | | | console key always results in the character being used as opposed to the key git-svn-id: svn://svn.icculus.org/quake3/trunk@1464 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Better condition to test whether to use the character or the keytma2008-08-281-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1462 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Revert 'Handle dead keys more gracefully by taking a "best guess" rather thantma2008-08-281-37/+76
| | | | | | | | | | | ignoring completely' from r1459; it can't ever work acceptably, especially on azerty/qwertz layouts * Make the ordering of the output from in_keyboardDebug more sensible * Add cl_consoleKeys cvar, a space delimited list of key names or characters that toggle the console git-svn-id: svn://svn.icculus.org/quake3/trunk@1461 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Handle dead keys more gracefully by taking a "best guess" rather than ignoringtma2008-08-251-15/+46
| | | | | | | | | | completely * When activating or deactivating the mouse flush any pending motion events; this should stop the view moving unpredictably in these circumstances * Add keyname completion to "unbind" git-svn-id: svn://svn.icculus.org/quake3/trunk@1459 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Don't set SE_KEY event to ctrl-h; I don't think this makes sensetma2008-08-222-35/+52
| | | | | | | | | | | | * Don't warp the mouse on deactivation unless the cursor is in the window already; this fixes in_nograb * Stop grabbing the mouse in windowed mode when there is no sense in doing so * Make sure that IN_Restart is only called on r_fullscreen modification if a mode change actually takes place git-svn-id: svn://svn.icculus.org/quake3/trunk@1455 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Really fix backspace on OS X (I hope)tma2008-08-221-5/+4
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1454 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Prevent ~ from generating a charactertma2008-08-221-0/+6
| | | | | | | * Fix backspace on OS X (I hope) git-svn-id: svn://svn.icculus.org/quake3/trunk@1453 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Tidy up the keyboard code a bit, add in_keyboardDebugtma2008-08-191-57/+84
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1450 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix misplaced #endiftma2008-08-141-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1447 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Pass the "best" SDL_PixelFormat (as returned by the initial call totma2008-08-131-7/+26
| | | | | | | | SDL_GetVideoInfo) to SDL_ListModes; this fixes said function returning an empty list when using the "windib" driver git-svn-id: svn://svn.icculus.org/quake3/trunk@1446 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Always show the mouse cursor when the mouse is disabledtma2008-08-092-18/+52
| | | | | | | | | | | * Rename IN_StartupJoystick to IN_InitJoystick, add IN_ShutdownJoystick * Add IN_Restart, which avoids calling IN_DeactivateMouse at the wrong time * Call IN_Restart when changing r_fullscreen * Add CVAR_ROM r_sdlDriver for easy checking of the SDL driver in use * Random README tweaks git-svn-id: svn://svn.icculus.org/quake3/trunk@1441 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Add Sys_GLimpInit for platform specific GLimp initialisationtma2008-08-081-3/+4
| | | | | | | | | | * Move Unix specific signal handlers to Sys_PlatformInit * (Windows only) Don't set the SDL video driver if SDL_VIDEODRIVER is already set externally * (Windows only) Use the "windib" SDL video driver if in_mouse is set to -1 git-svn-id: svn://svn.icculus.org/quake3/trunk@1440 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Whitespace...tma2008-08-031-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1436 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Report SDL driver used on GLimp initialisationtma2008-08-031-3/+6
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1435 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Use Sys_Sleep to limit FPS, which will save CPUtma2008-07-211-10/+1
| | | | | | | | * Add com_maxfpsUnfocused and com_maxfpsMinimized; self explanatory * Fix reopening of bug 3703, I hope git-svn-id: svn://svn.icculus.org/quake3/trunk@1431 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Revert r1341 as there doesn't seem to be a lot of point to the change and ittma2008-07-161-8/+1
| | | | | | | | potentially will cause input events to be queued in a different order to that in which they were received git-svn-id: svn://svn.icculus.org/quake3/trunk@1428 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fixed compiler warning on Mac OS X.icculus2008-07-061-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1417 edf5b092-35ff-0310-97b2-ce42778d08ea
* Reverting.zakk2008-07-061-65/+122
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1416 edf5b092-35ff-0310-97b2-ce42778d08ea
* Theoretical higher chance of working.zakk2008-07-061-14/+10
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1413 edf5b092-35ff-0310-97b2-ce42778d08ea
* It's either the Wu-Tang Symbol or the tango quake3 logo, someone pleasezakk2008-07-061-130/+77
| | | | | | | test this on Linux. git-svn-id: svn://svn.icculus.org/quake3/trunk@1412 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug 3610) Server sending unnecessary newline with SV_ConSay_F (Tyler Schwend tma2008-07-051-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | <TylerSchwend@gmail.com>) * (bug 3623) COMMAND is mapped to the ALT key (Matthias <Kapffer@macbay.de>) * (bug 3665) Typo error in FS_FOpenFileByMode function (TsT <tst2006@gmail.com>) * (bug 3669) Some files left out of Solaris Packages (Vincent Cojot <vincent@cojot.name>) * (bug 3680) server quit messages (Ben Millwood) * (bug 3682) Maps with >1024 models cause a segfault (misantropia <bnoordhuis@gmail.com>) * (bug 3683) R_FindShader(): negative lightmap indexes cause stray pointers (misantropia <bnoordhuis@gmail.com>) * (bug 3688) q3asm potential segfault fix and other changes (TsT <tst2006@gmail.com>) * (bug 3695) Not allowing to write file with lib extention (.dll/.so/...) (TsT <tst2006@gmail.com>) * (bug 3696) make-macosx-ub.sh outdated by revision 1340; test for Tiger not working (Matthias <Kapffer@macbay.de>) * (bug 3698) #error reported as warning in q3cpp (and no #warning support) (Ben Millwood) * (bug 3703) restoring the valued pre-SDL window behaviour (/dev/humancontroller <devhc97@gmail.com>) git-svn-id: svn://svn.icculus.org/quake3/trunk@1405 edf5b092-35ff-0310-97b2-ce42778d08ea
* Added GL_EXT_texture_compression_s3tc support.icculus2008-06-131-12/+46
| | | | | | | | GL_S3_s3tc, which Quake 3 previously supported, is legacy. This new codepath is the common, vendor-neutral extension to get the same results. git-svn-id: svn://svn.icculus.org/quake3/trunk@1387 edf5b092-35ff-0310-97b2-ce42778d08ea
* Whoops, maybe this is the right header location...icculus2008-06-091-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1384 edf5b092-35ff-0310-97b2-ce42778d08ea
* Added #include to fix compiler warning on Mac OS X.icculus2008-06-091-0/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1383 edf5b092-35ff-0310-97b2-ce42778d08ea
* combine all mouse events received in one frameludwig2008-05-061-1/+8
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1341 edf5b092-35ff-0310-97b2-ce42778d08ea
* This may enable stereo rendering for other devices like shutter glasses, but ↵thilo2008-04-271-0/+12
| | | | | | I don't know whether this works yet. git-svn-id: svn://svn.icculus.org/quake3/trunk@1330 edf5b092-35ff-0310-97b2-ce42778d08ea
* sort video modes only if there are modes to sortludwig2008-04-131-1/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1319 edf5b092-35ff-0310-97b2-ce42778d08ea
* Make sure fullscreen does not work for in_nograb when manually Alt-Entering, ↵thilo2008-03-261-0/+7
| | | | | | too. git-svn-id: svn://svn.icculus.org/quake3/trunk@1282 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Disabling r_allowSoftwareGL as per bug 3526tma2008-01-311-0/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1251 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix building on MacOSX.thilo2007-12-141-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1238 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Replace "powered by ioq3" text with ui_ioq3 CVAR_ROMtma2007-12-111-38/+93
| | | | | | | | | | | | * Guess display aspect based on the desktop resolution * Sort detected resolutions by... + closeness to display aspect + ascending width + ascending height * Apply Q3 coding style to resolution detection code git-svn-id: svn://svn.icculus.org/quake3/trunk@1232 edf5b092-35ff-0310-97b2-ce42778d08ea
* detect available resolutions and offer them in the menuludwig2007-12-081-0/+44
| | | | | | | | | | Store the resolutions detected by SDL in a cvar. The mod code can then optionally use the cvar to offer a better choice in the menu. Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de> git-svn-id: svn://svn.icculus.org/quake3/trunk@1231 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Move SDL library version check to sys_main.c as it's proving difficult totma2007-11-251-3/+3
| | | | | | | | | | make the Makefile check sufficiently portable * Remove unnecessary GL PFN... casts from SDL_GL_GetProcAddress calls * Replace OS X uname workaround with Solaris workaround, as I believe OS X uname now behaves the same as GNU name git-svn-id: svn://svn.icculus.org/quake3/trunk@1217 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug 3393) Blank user names still possible (Michael Jard <kfaust@gmail.com>)tma2007-11-024-5/+26
| | | | | | | | | * (bug 3363) Download percentage overflow (Martin Doucha <next_ghost@quick.cz>) * (bug 3390) MSVC project (Julian Priestley <juzley@gmail.com>) * For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0 git-svn-id: svn://svn.icculus.org/quake3/trunk@1204 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix bug that prevented key up events getting to cgame/ui when not in gametma2007-10-021-2/+2
| | | | | | | | * Use Key_[GS]etCatcher everywhere to set keycatcher * Clear all key states when the catcher changes git-svn-id: svn://svn.icculus.org/quake3/trunk@1189 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Remove some C99isms (f0rqu3)tma2007-10-012-14/+16
| | | | | | | * Provide Q_snprintf wrapper for snprintf (f0rqu3) git-svn-id: svn://svn.icculus.org/quake3/trunk@1188 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Revert 1176 -- MinGW's headers are too old *sigh*tma2007-09-121-9/+48
| | | | | | | | | * Revert to using literal function pointers for GL extensions rather than PFN* typedefs as some platforms' headers are broken enough that they prevent SDL_opengl.h from fixing things up if the PFN* typedefs are missing git-svn-id: svn://svn.icculus.org/quake3/trunk@1177 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Remove use of GL_ARB_multitexture since this has been part of thetma2007-09-101-45/+6
| | | | | | | core API for many years now git-svn-id: svn://svn.icculus.org/quake3/trunk@1176 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Compile time and runtime checks for SDL >= 1.2.7tma2007-09-061-0/+7
| | | | | | | * Modified versioning to play nice with the reverted Makefile change git-svn-id: svn://svn.icculus.org/quake3/trunk@1168 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix for SMP hack on OS Xtma2007-09-061-0/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1166 edf5b092-35ff-0310-97b2-ce42778d08ea
* * I R KNWOING HOW COMPUTARS WURK!!!!!!! lOLtma2007-09-051-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1165 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Replace the ugliness in qgl.h with SDL_opengl.htma2007-09-051-6/+6
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1163 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Merge unified-sdl to trunktma2007-09-055-0/+2116
* Bump Q3_VERSION to 1.35 git-svn-id: svn://svn.icculus.org/quake3/trunk@1161 edf5b092-35ff-0310-97b2-ce42778d08ea