Commit Graph
100 Commits
Author SHA1 Message Date
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
Ben Anderson 68799a8820 Use iterators, etc. properly. It's painfully obvious I don't code C++ much. 2005-03-13 21:08:52 +00:00
Ben Anderson 2a7290ce16 Numerous fixes, now compiles on GCC 3.4 and should on most other compilers 2005-03-13 20:44:43 +00:00
Ben Anderson 9486490cbb Fix numerous syntax and semantic errors 2005-03-13 20:32:13 +00:00
Ben Anderson 16b6515e1c nl 2005-03-13 20:25:57 +00:00
Ben Anderson 58c6b37389 Oops, little hangover from a previous design there... 2005-03-13 20:13:01 +00:00
Ben Anderson e14f4c7d9b Completely redid the formatting. Should be much more readable now. 2005-03-13 19:51:25 +00:00
Ben Anderson 405d11e096 Forgot way too many things to list... 2005-03-13 19:25:27 +00:00
Ben Anderson 43752d219a Sean's InputHandler_X11, modified to use X11Helper and not abuse the keyboard grab. Needs formatting to be fixed -- blame dodgeit (long story) 2005-03-13 19:22:01 +00:00
Ben Anderson fbc1ebcf32 Second time today I forgot something... unmask StructureNotify events so we actually GET the MapNotify event! 2005-03-13 19:18:23 +00:00
Ben Anderson f5b08ace8e And after a long wait, here it is -- LowLevelWindow_X11. InputHandler_X11 coming soon... 2005-03-13 19:05:20 +00:00
Ben Anderson c70d8cdb86 Whoops, forgot an initializer, and forgot to destroy the old window... 2005-03-13 18:53:07 +00:00
Ben Anderson 62c0288f66 Design change -- the callback system is unnecssary, all InputHandler_X11 needs to do is unmask events, which is already available through OpenMask(). Also, a few idle formatting tweaks. 2005-03-13 17:54:13 +00:00
Ben Anderson 1ac1265e10 This header isn't used by anything and it hasn't been updated in 2 years... 2005-03-13 16:23:55 +00:00
Ben Anderson acbc1ee8bf Move inclusion of RageLog to top of file so entire file can use it. This fixes compilation on all platforms. 2005-03-13 16:04:06 +00:00
Ben Anderson d466d31196 Fix one or two mistakes; allow mask setting even if no winow has been created yet. 2005-03-13 16:00:38 +00:00
Ben Anderson a0b45c084d Added parts related to event mask. Should be feature complete and the header more or less finalized now, but who knows if it as much as compiles, leave alone runs or works... 2005-03-13 05:32:16 +00:00
Ben Anderson cea5074135 Initial (INCOMPLETE!) X11 helper for the upcoming InputHandler_Xlib and LowLevelWindow_Xlib. I should finish this in the next week. 2005-03-13 04:02:37 +00:00
Ben Anderson c1b965b030 Fix apparent typo breaking compilation (GCC wrongly complained about ISO for scoping) 2005-01-28 00:27:52 +00:00
Ben Anderson 25ea8e4825 Fix compilation 2005-01-27 23:58:37 +00:00
Ben Anderson 34ae17ee17 Options menus no longer depend on hardcoded screen name 2005-01-08 20:46:32 +00:00
Ben Anderson 28b7541b60 Fix typographical error (or so I hope it is...) 2005-01-08 14:19:56 +00:00
Ben Anderson dee52f75b1 Fix combos (does ScoreKeeper5th need fixing too?) 2004-12-29 19:12:25 +00:00
Ben Anderson cd541f58dc Add VirtualKeyboard 2004-11-27 06:23:52 +00:00
Ben Anderson 6ae0918d7b Catch (solo) tag 2004-11-13 21:35:17 +00:00
Ben Anderson 53857a39ff Let's clean up everyone's logs a little bit... 2004-11-13 17:48:59 +00:00
Ben Anderson b9e5fe5245 Implement common substring algorithm, it provides a more accurate ID of the title and the difficulty of each file. 2004-11-13 17:38:08 +00:00
Ben Anderson 1104565faa Proof that I forgot to diff before committing... Stupid me. That comment is useless. 2004-11-12 04:01:20 +00:00
Ben Anderson 96859248d8 Yes, it IS the best name damnit! How did that get there? 2004-11-12 03:59:05 +00:00
Ben Anderson 946d0993bf Fallback graphics for passmark lifebar 2004-11-12 03:45:36 +00:00
Ben Anderson cdca8e1457 Implement LifeMeterBar passing and LifeMeterBar extra passing, lifebars that display when the player is above the passmark. 2004-11-12 03:44:15 +00:00
Ben Anderson f61f53cdc2 Somebody forgot to modify the header... 2004-11-07 05:34:05 +00:00
Ben Anderson 0322d5d447 Whoever wrote this apparently thought the FLUSHING state had something to do with playing back the sound. Removing this fixed the bug where 'short' keysounds were clipped. And I guess I might as well fix a small typographical error in that comment. 2004-11-03 23:59:23 +00:00