Commit Graph
100 Commits
Author SHA1 Message Date
Ben Anderson 7da3272486 Add proper fullscreen and resolution changing support using XRandR. This makes XRandR mandatory, but I don't see any reason why we can't do that, and providing alternatives would be difficult at best for little payoff. 2005-12-02 21:17:36 +00:00
Ben Anderson 58eb9115db Return to compilable state (.h still breaks arch.o however) 2005-12-02 00:05:29 +00:00
Ben Anderson 8fb5eb78f6 We can reach, but not exceed MAX_COLS_PER_PLAYER. (fix assert on beat-double7) 2005-10-14 00:16:24 +00:00
Ben Anderson f83eb0a2ca Send key off when disabled only once. (fixes space bar not responding) 2005-10-13 01:34:06 +00:00
Ben Anderson 622293b6eb JOY_1 -> JOY_BUTTON_1 2005-09-21 21:09:27 +00:00
Ben Anderson 99b4729926 Remove several dupes 2005-09-11 00:25:26 +00:00
Ben Anderson a450acf26c RageFile token without matching #include 2005-09-10 23:39:09 +00:00
Ben Anderson ac39d8ef1f Don't revert without fixing the original problem! Fixing Linux compile without WITHOUT_NETWORKING _again_ 2005-09-02 16:37:31 +00:00
Ben Anderson ac9d86f54d Remove dupe ScreenGameplayMultiplayer 2005-08-24 01:02:21 +00:00
Ben Anderson b81c3dcf3c Revert; I'm not awake today. 2005-08-05 20:41:15 +00:00
Ben Anderson b02b6b2638 Skipping screens at the screen level is illegal; leave it up to the theme. Added assert as well. 2005-08-05 19:32:38 +00:00
Ben Anderson 7bd90e4f1a Case is important on non-win32 platforms! Fixes compilation on Linux and possibly OS X 2005-08-04 15:56:49 +00:00
Ben Anderson 96117b9b65 Apparently, we can't arbitrarily switch screens at the engine level. Crash instead. 2005-07-07 16:24:09 +00:00
Ben Anderson 0ce3ef6fc6 We're not allowed to skip screens at the engine level; crash instead. (We're crashing anyway) 2005-07-07 15:10:54 +00:00
Ben Anderson 29d2057e94 Revert: don't break half the codebase and then commit. At least fix it to a relatively usable point before making such a devastating assertion. 2005-07-06 23:55:48 +00:00
Ben Anderson 02f51eae1f Add RageTexturePreloader; remove EditCoursesMenu 2005-06-30 23:14:57 +00:00
Ben Anderson daaf1814a8 More Dev-C++ work. We're close, oh so close... All that's left now is the crash handler. 2005-06-26 04:11:00 +00:00
Ben Anderson 11cc6576de The non-Windows compiles on MinGW where the Windows stuff does not.
(Isn't that block compiler-specific and not OS-specific?)
2005-06-26 04:09:51 +00:00
Ben Anderson 6b22e48136 Use _WINDOWS; Use _MSC_VER properly; comment #if block 2005-06-26 04:02:39 +00:00
Ben Anderson d3e3c756ac Use _MSC_VER properly; comment #if block 2005-06-26 04:00:34 +00:00
Ben Anderson 5684b44997 #define NEED_CSTDLIB_WORKAROUND just like Glenn said. 2005-06-26 03:58:25 +00:00
Ben Anderson 58f0d45465 Add comments to confusing #if block; use _WINDOWS and _MSC_VER properly (fixes MinGW compilation) 2005-06-26 03:51:38 +00:00
Ben Anderson 30cb9950f9 Add MinGW compilation hack. I hope this compiles on other systems. 2005-06-26 03:48:46 +00:00
Ben Anderson b4d007e6d6 Use _WINDOWS and _MSC_VER properly. Fixes MinGW compilation. 2005-06-26 03:45:25 +00:00
Ben Anderson e2e3e11860 Remove useless #ifdef 2005-06-26 03:43:42 +00:00
Ben Anderson 758182858a MinGW doesn't define _WINDOWS for us; define it. 2005-06-26 01:35:57 +00:00
Ben Anderson bc3eebc737 Add GCC asm for MinGW 2005-06-26 01:33:33 +00:00
Ben Anderson 35ca4b4514 s/sModifier/sModifiers/ 2005-06-26 01:14:32 +00:00
Ben Anderson 2d2988f690 Initial Dev-C++ project file. Doesn't work yet, but it's damn close. 2005-06-26 01:11:18 +00:00
Ben Anderson 9d57dc658e More MinGW fixes (this time I'm testing it) 2005-06-26 00:51:02 +00:00
Ben Anderson db08fefc2a Continue work on supporting MinGW / Dev-Cpp. 2005-06-20 19:23:04 +00:00
Ben Anderson ebcbdd3c9f Move GCC/x86 assembler instructions into a single common file; begin work on supporting MinGW as a secondary Win32 build environment. 2005-06-20 01:33:32 +00:00
Ben Anderson 111028f9b4 Give different variables different names. I don't know how that compiled in the first place... 2005-06-08 01:45:21 +00:00
Ben Anderson 8fef7be08d We just changed the song; update sync data. Fixes assert entering jukebox mode. 2005-06-07 13:32:35 +00:00
Ben Anderson e46350693c Going into version 4.0. Let's not do CVS snapshot releases this time and skip straight to alpha 1 when we start releasing from trunk again. And \'random build\' just plain sounds unprofessional. 2005-06-07 13:31:39 +00:00
Ben Anderson e86dffd34e Keep operands to ? the same type! (Fixed compile-time error on GCC 3.3) 2005-06-04 01:38:37 +00:00
Ben Anderson 0ef2ece2a1 Move DifficultiesToShow into Common metrics. (Fixes assert.) 2005-06-03 21:02:47 +00:00
Ben Anderson cde2db8c62 I've got a better idea. Let's respect the theme metric specifically designated for this. 2005-06-03 19:01:16 +00:00
Ben Anderson 56ebe75fb5 How many times am I going to forget to test before committing? 2005-06-03 18:47:30 +00:00
Ben Anderson 78bc7c27b2 Partial semi-revert; X11Helper is supposed to catch that the window isn't open (I just fixed that), not us making sure to unmask only after the window is created. 2005-06-03 18:45:03 +00:00
Ben Anderson d280cf7445 Don't apply masks unless our window has been created. 2005-06-03 18:40:39 +00:00
Ben Anderson 26f793a716 Extra argument 2005-06-01 00:28:04 +00:00
Ben Anderson 6fd6124a56 Oops! Missed some. 2005-06-01 00:24:39 +00:00
Ben Anderson 2d9a257520 s/random/pick_random/ (Linux stdlib.h declares random and GCC doesn't like multi-declared symbols.) 2005-06-01 00:22:39 +00:00
Ben Anderson ccd0cba6da Add assert; this prevents an infinite loop that allocates memory. (This assert actually triggers on my system!) 2005-05-28 01:19:09 +00:00
Ben Anderson 4bfd999bad Revert; I should test things before committing, guh. 2005-05-28 00:53:34 +00:00
Ben Anderson 0a9f3d1552 std::map.end() points PAST the last element, not at it! 2005-05-28 00:47:34 +00:00
Ben Anderson 98c5e7348b Preference<int> != int 2005-05-28 00:36:30 +00:00
Ben Anderson ab49ff09b9 Likely fix compilation; follow the standard Selector setup correctly. 2005-05-26 00:35:54 +00:00
Ben Anderson f549ec0779 Update; another bug I forgot about. 2005-05-06 15:27:41 +00:00
Ben Anderson a60407a679 Update. Three more bugs I just remembered. 2005-05-06 02:56:05 +00:00
Ben Anderson 344561fdfd A TODO! A good idea! 2005-05-05 21:36:48 +00:00
Ben Anderson 3edfc9bf2b Partial revert; I didn't know that dialog code already does logging 2005-05-05 01:08:28 +00:00
Ben Anderson ec1d229339 Make sure there actually is a texture before calling methods on it. Also, use Log instead of dialog; dialog isn't available on some platforms (Linux) 2005-05-05 00:36:14 +00:00
Ben Anderson abbfc6ad7b You don't know that enumerations and integers are the same size; don't assume so. (Fixes assert failure on entering appearance options) 2005-05-04 23:43:22 +00:00
Ben Anderson d67bc9dd09 Add RoomWheel 2005-05-03 21:51:41 +00:00
Ben Anderson 79e55330e4 Don't use NULL for non-pointers 2005-05-02 01:57:37 +00:00
Ben Anderson a89304c0cb Remove unused variable 2005-05-02 01:53:09 +00:00
Ben Anderson 0ca2dd7540 Fix case (fixes compilation on POSIX systems) 2005-05-02 01:07:15 +00:00
Ben Anderson 8835706d8c Revert again; and rearrange to be more intuitive and obvious. 2005-04-21 23:11:04 +00:00
Ben Anderson 770c39296e Revert; LowLevelWindow_X11 and LowLevelWindow_SDL *are* mutually exclusive (all LowLevelWindows are; see Selector_LowLevelWindow.h, arch.cpp, etc.). Also trivial fixes. 2005-04-21 21:57:10 +00:00
Ben Anderson 2d8b8cdc42 Remove 大見解 dupe 2005-04-10 21:40:05 +00:00
Ben Anderson d199811bd9 Remove duplicate 17才 entry 2005-04-10 20:45:38 +00:00
Ben Anderson d969e8fc06 SDL is no longer mandatory (on Linux anyway). 2005-04-06 00:20:52 +00:00
Ben Anderson d137be895e Thanks Glenn, your blatant 'it worked for me' syndrome really bit me in the ass. 2005-04-05 23:51:38 +00:00
Ben Anderson dc9c6b6114 Add stuff from ItG 2005-04-05 22:26:57 +00:00
Ben Anderson def9a3a267 Remove hack; no longer necessary 2005-04-05 03:08:31 +00:00
Ben Anderson d6976dd40c Don't use a heartbeat in the worker thread. Many platforms' timed event wait functions (most notoriously Linux) spin instead of blocking, causing performance hell (this is the source of the issues recently uncovered by LowLevelWindow_X11). This means we should avoid heartbeats in worker threads whenever possible. Strangely, this also fixed an obscure deadlock on quit... 2005-04-05 02:55:13 +00:00
Ben Anderson 413cbfdeb4 Reflect branch fix in trunk... 2005-03-26 16:52:41 +00:00
Ben Anderson 80d6e78069 Code cleanups I keep forgetting to commit... 2005-03-26 16:39:53 +00:00
Ben Anderson cb34dc4175 glFlush(), not glFinish(); easier on performance, behaves well on X11 / NVIDIA_GLX now, probably helps other platforms as well 2005-03-22 01:32:05 +00:00
Ben Anderson 9c9d1f365f Reorder; fixes compilation on GCC 3.4. 2005-03-19 00:48:33 +00:00
Ben Anderson 2774b74348 Fix compilation on GCC. I don't know why this works, it just does. (I tested it. 2005-03-18 00:55:21 +00:00
Ben Anderson 800bbfbb70 Always process all KeyPress events before all KeyRelease events. KeyPress are more timing-sensitive, and this makes race conditions causing sticky keys a little less likely. 2005-03-17 04:40:14 +00:00
Ben Anderson d0cd9f3bf6 Prevent some unnecessary time checking 2005-03-17 04:31:12 +00:00
Ben Anderson 96d6cdd9cc XSync can and often does cause events e.g. input events to be dropped, don't do it. 2005-03-17 02:12:57 +00:00
Ben Anderson b1c17eacdb glFinish() at the end of each frame; I'm seeing the "buffer swap with unfinished frame" issue at lower framerates when this isn't being done. (FYI, this doesn't fix choppiness with X11 driver, but helps a little bit.) 2005-03-17 01:21:13 +00:00
Ben Anderson 063298de3d Fix window resizing, and add a harmless workaround for my obscure WM. Recreating the window (when the depth changes) now works too. 2005-03-16 05:55:01 +00:00
Ben Anderson 78b742a7da X True, not C++ true 2005-03-16 02:40:12 +00:00
Ben Anderson 42bcdcab4b Forgot something... 2005-03-16 02:37:02 +00:00
Ben Anderson 38ee973125 You know, I should pay attention to what cvs update is doing to the file... 2005-03-16 02:25:07 +00:00
Ben Anderson 18296126df Do things a little closer to the way SDL does them (but not much), magical hack that fixes performance issues for X11 on some (all?) systems, use variables instead of functions for Dpy and Win in X11Helper, a couple formatting tweaks. 2005-03-16 02:23:07 +00:00
Ben Anderson e0e23c7b99 Blah... dumb little screwups revolving around X11 and SDL. 2005-03-15 00:41:05 +00:00
Ben Anderson 3b65e3f438 Remove useless Linux_tty input driver from the build as per Sean's suggestion; he's right, there's no point in having it if it requires SDL. 2005-03-15 00:36:01 +00:00
Ben Anderson 54d6689657 Commit them last two files (the two most important ones) in that commit. I have no clue what happened there. 2005-03-15 00:33:15 +00:00
Ben Anderson 167e5aebc0 Put all the Make* functions into a single .h/.cpp file (yes, kinda like the way it was), and add Make* functions for DialogDrivers. This means there's only one object that's affected by drivers being added/removed. (Driver default changes are a little different -- 2 or 3 objects.) Also one or two minor cleanups. (note: I apparently don't know much about CVS, it appears that some files might not make it into the repository; hang tight, I'm trying to find a solution.) 2005-03-15 00:30:26 +00:00
Ben Anderson 8362e44d72 Put all the Make* functions into a single .h/.cpp file (yes, kinda like the way it was), and add Make* functions for DialogDrivers. This means there's only one object that's affected by drivers being added/removed. (Driver default changes are a little different -- 2 or 3 objects.) Also one or two minor cleanups. 2005-03-15 00:23:31 +00:00
Ben Anderson 566d2b9d35 Set current parameters after a successful video mode try. 2005-03-14 23:51:58 +00:00
Ben Anderson bd331e4d0b Apparently a semicolon is supposed to be there (odd, it compiled on GCC 3.4 without one...) 2005-03-14 12:18:28 +00:00
Ben Anderson 0db665d4d6 Thorough(!) remodeling of the arch/ directory and the contents therein; fixed link-time warnings on GCC and should make things a lot easier to manage. A pile of other random things too, mostly cleanups and getting things to work with the remodeled arch/ directory. 2005-03-14 06:44:38 +00:00
Ben Anderson bee0a762d2 Remap the window when remodeling to work around possible buggy WMs and/or X servers; remove useless trace; random cleanups, formatting adjustments, etc 2005-03-14 00:26:14 +00:00
Ben Anderson a95cb42339 Reserve a whole 1k for that error message. They're more descriptive (read: long) than I thought 2005-03-14 00:00:29 +00:00
Ben Anderson c58fefcfff Catch and log X11 protocol errors; they might be useful in debugging. 2005-03-13 23:50:12 +00:00
Ben Anderson 6df8be39ec Play nice with RageDisplay_OGL GLX hacks 2005-03-13 22:54:50 +00:00
Ben Anderson 907bfa03eb I'm such an idiot, I forgot to map the window! Also, slight reordering to make things theoretically more efficient. 2005-03-13 22:40:41 +00:00
Ben Anderson 634e0a5b28 I should've done this a little differently (intuitively). Good catch, Glenn. 2005-03-13 22:08:55 +00:00
Ben Anderson e6d5c509f3 Why was that being included there? 2005-03-13 21:56:36 +00:00
Ben Anderson c551a686ac But we might be compiling without SDL! 2005-03-13 21:54:29 +00:00
Ben Anderson 34a45fb089 Whose bright idea was it to use SDL routines in the ALSA code? 2005-03-13 21:51:51 +00:00
Ben Anderson de3c510f73 Make hackish assumption for now, we can fix that properly later. 2005-03-13 21:23:58 +00:00