Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 11cdc5dc56 nothing derives from BGAL 2003-06-30 05:34:03 +00:00
Glenn Maynard 8800398923 implement Right. 2003-06-30 05:30:59 +00:00
Glenn Maynard c409726a68 simplify 2003-06-30 05:26:08 +00:00
Glenn Maynard 2c26de902a pragma warning in windows only 2003-06-30 05:24:39 +00:00
Glenn Maynard 8d61b729f0 eol 2003-06-30 05:22:31 +00:00
Glenn Maynard 30f20fb1fd oops; guarantee that GetTapNote(t,row) is always empty for row<0 2003-06-30 05:20:57 +00:00
Glenn Maynard 2c5a859432 fix potential infinite loop 2003-06-30 05:19:50 +00:00
Glenn Maynard aed1cd789e cleanup 2003-06-30 05:17:40 +00:00
Glenn Maynard 7ff4080994 default: 2003-06-30 04:59:28 +00:00
Glenn Maynard 7c46a3aa61 #pragma comment is win32 only 2003-06-30 04:53:45 +00:00
Glenn Maynard 1fa94d40db NEED_TRUNCF, NEED_ROUNDF 2003-06-30 04:42:17 +00:00
Glenn Maynard 75d3b3b13e fix and simplify 2003-06-30 04:41:53 +00:00
Glenn Maynard 4fc640e623 add truncf 2003-06-30 04:39:06 +00:00
Glenn Maynard ec2d476420 cleanup 2003-06-30 04:29:53 +00:00
Glenn Maynard 3e07de6655 Split score reading into separate functions.
Type fixes.
2003-06-30 04:24:59 +00:00
Glenn Maynard 455f230e94 bump cache 2003-06-30 03:14:52 +00:00
Glenn Maynard 29a53a9435 use FMT_A1BGR5 2003-06-30 03:14:13 +00:00
Glenn Maynard 108a3cceee add FMT_A1BGR5 2003-06-30 03:13:53 +00:00
Glenn Maynard 0e2fe4a69d simplify 2003-06-30 03:12:36 +00:00
Glenn Maynard da8448999b optimize 2003-06-30 02:40:28 +00:00
Glenn Maynard ce518b6bb2 Allow any image format when creating a texture. 2003-06-30 02:39:56 +00:00
Glenn Maynard 71d3338ed4 It's curious that the PCRE author's license demands he be mentioned in the
documentation, when almost none of our *own* names are even in there ...
2003-06-30 01:50:41 +00:00
Glenn Maynard edb9ce03b6 optimization 2003-06-30 00:34:18 +00:00
Glenn Maynard 4df0a19973 fix compile problem 2003-06-29 22:44:30 +00:00
Glenn Maynard 5f5876af46 what is #defining "or" to "||"? 2003-06-29 22:43:41 +00:00
Glenn Maynard 5fd004a1fc fix not using random banner 2003-06-29 21:52:39 +00:00
Glenn Maynard bb42cd2ebb log codec information 2003-06-29 21:45:48 +00:00
Glenn Maynard 6ae4237530 fix endless crash 2003-06-29 20:49:57 +00:00
Glenn Maynard a09a79c2f2 unneeded code 2003-06-29 20:14:36 +00:00
Glenn Maynard 02e6bbbfa2 fix div/0 that caused radar weirdness 2003-06-29 19:53:10 +00:00
Glenn Maynard 684f159ed3 avoid potential div/0 2003-06-29 19:28:55 +00:00
Glenn Maynard 229045627b guh 2003-06-29 08:15:35 +00:00
Glenn Maynard 7034dbddc6 Simplify, optimize. I'm staying over 150fps with my normal test clip,
in OpenGL, 16-bit textures.
2003-06-29 08:15:08 +00:00
Glenn Maynard 7951b5f3e7 Add helpers: RageDisplay::CreateSurfaceFromPixfmt, RageDisplay::FindPixelFormat.
UpdateTexture can now take any image format; it doesn't have to match the
original format, or even be a standard pixel format.  This is because we
can often do the conversion much more efficiently within UpdateTexture
than we can in the caller.  With D3D, we can convert any source format
as we copy, preventing an extra blit. OpenGL can do it on the fly if
it happens to be a known texture format.

We can figure out the pixel format from the image itself, so there's
no need to pass pixfmt to UpdateTexture.

Add BGR8, for movies with OpenGL.
2003-06-29 08:13:18 +00:00
Glenn Maynard 9bcb468aa0 Sick of wrestling with the SDL blitters. 2003-06-29 07:03:00 +00:00
Glenn Maynard 480fa64436 clean up dependencies 2003-06-29 07:02:03 +00:00
Glenn Maynard 5ce81c8fc0 comment 2003-06-29 01:06:08 +00:00
Glenn Maynard 5a28d482cc reduce dependencies 2003-06-29 01:04:22 +00:00
Glenn Maynard 9d6e78f9df log avi codec 2003-06-28 22:30:46 +00:00
Glenn Maynard b605e46dbf cleanup 2003-06-28 02:27:27 +00:00
Glenn Maynard 55705d34d7 don't mess with texture parameters when updating 2003-06-28 02:27:04 +00:00
Glenn Maynard 4f2d551e90 bring RageDisplay_OGL::CreateTexture and UpdateTexture closer
together
2003-06-28 02:23:35 +00:00
Glenn Maynard 7f5b42cc9d cleanup 2003-06-28 02:19:31 +00:00
Glenn Maynard 3e4e26dd95 fix crash with very long hold notes 2003-06-28 02:15:27 +00:00
Glenn Maynard 3a9205e1d2 move prototype 2003-06-28 02:03:26 +00:00
Glenn Maynard 2009310fa5 invalidate banner cache 2003-06-28 01:48:54 +00:00
Glenn Maynard 06207a0171 Clean up endianness mess. 2003-06-28 01:45:44 +00:00
Glenn Maynard 20eabca2d8 Oops. Don't blit into a surface the size of the texture; only the size
of the image.  That's the whole point of using glTexSubImage2D.

Simplify.
2003-06-28 00:06:15 +00:00
Glenn Maynard 33324c34cc If the music is in slow motion, dance in slow motion, too. 2003-06-27 20:10:37 +00:00
Glenn Maynard 32be84e468 I'm tired of strange, obscure regex crashes. Use PCRE instead of GNU
regex.

Reenable d3d error messages.

Put my missing code back in.  Don't revert large sections of important
code; report bugs and get them fixed.  (Without this, "IsAFile("foo\bar")
will fail on Unix.)
2003-06-27 20:09:29 +00:00
Glenn Maynard be9b9ef05c add pcre 2003-06-27 19:59:05 +00:00
Glenn Maynard 3a68361a69 typo 2003-06-27 19:57:30 +00:00
Glenn Maynard c2f91efeec add pcre 2003-06-27 19:51:48 +00:00
Glenn Maynard d747c3fc2f simplify using a functor class instead of a template 2003-06-27 09:19:45 +00:00
Glenn Maynard 41c3a8d1fa fix leak 2003-06-27 09:05:51 +00:00
Glenn Maynard d4508af417 unneeded header 2003-06-27 08:53:46 +00:00
Glenn Maynard 537ae7e991 fix index 2003-06-27 02:11:13 +00:00
Glenn Maynard 22cef46d85 improve model lighting in d3d 2003-06-27 02:04:56 +00:00
Glenn Maynard fd9fe23cf7 fix d3d model crash 2003-06-27 00:57:02 +00:00
Glenn Maynard 6fd93db405 fix losing the last buffer of sound from a sample 2003-06-26 22:24:42 +00:00
Glenn Maynard c898370ed0 improve cleanup after a throw 2003-06-25 21:03:41 +00:00
Glenn Maynard 2206e32cef Simplify exception handling. Improve fallback if we can't set up an
OpenGL window.
2003-06-25 20:44:49 +00:00
Glenn Maynard 9fe82671a6 fix InputFilter::Reset losing key release events 2003-06-25 06:33:18 +00:00
Glenn Maynard 0da3c9c92d fix keys getting stuck if we lose focus while they're depressed 2003-06-25 06:31:13 +00:00
Glenn Maynard cfe1441b6d Retain the difficulty specified in extra1/extra2.crs.
This has a side-effect: with "pick extra stage" on, you're stuck with the
difficulty of the song specified, even if you pick a different stage.
2003-06-25 06:30:13 +00:00
Glenn Maynard 99c651f808 dur 2003-06-25 05:37:40 +00:00
Glenn Maynard 3ca9b23f40 Fix autoplay weirdness in editor 2003-06-25 05:35:14 +00:00
Glenn Maynard 17e111815d unused member variable 2003-06-25 05:26:47 +00:00
Glenn Maynard cac429e488 fix note skin data not always being loaded 2003-06-25 05:22:58 +00:00
Glenn Maynard 63cd483b17 Remove m_sDefaultNoteSkin.
Make m_sDefaultModifiers a game pref.
2003-06-25 05:02:42 +00:00
Glenn Maynard ef9f53d514 fix default note skin option 2003-06-25 04:51:41 +00:00
Glenn Maynard 595e4ccb0a fix PREFSMAN->m_sDefaultModifiers for difficulty 2003-06-25 04:43:33 +00:00
Glenn Maynard 0dac6150c5 remove strange space-like characters that aren't actually spaces 2003-06-24 22:00:38 +00:00
Glenn Maynard 3480fd1367 Fix hh:mm.ss display. Switch at an hour, not 100 minutes. 2003-06-24 20:21:09 +00:00
Glenn Maynard 8c2b5ee867 warnings 2003-06-24 20:06:42 +00:00
Glenn Maynard 9342550563 fix reloading: simply calling LoadFromSMFile won't reset everything,
leading to duplicate notes and some other stuff not always being reverted
2003-06-24 20:06:16 +00:00
Glenn Maynard 9c2c8873c5 add Song::Reset and Song::RevertFromDisk 2003-06-24 20:04:35 +00:00
Glenn Maynard 2cb3d5f339 always brace nested ifs, or you end up with obscure bugs like this one 2003-06-24 20:03:28 +00:00
Glenn Maynard 926a7346f2 diagnostics 2003-06-24 07:39:37 +00:00
Glenn Maynard 474875f7cb move song cache into a subdir 2003-06-23 23:00:49 +00:00
Glenn Maynard 9348ab2341 bump cache 2003-06-23 22:45:06 +00:00
Glenn Maynard dd106b85d5 simplify and fix nonstop scores when marv is off 2003-06-23 22:34:49 +00:00
Glenn Maynard 1dd1454de7 remove old comment 2003-06-23 22:17:40 +00:00
Glenn Maynard 7158e8815e more comment fixes 2003-06-23 22:16:44 +00:00
Glenn Maynard c87e98e29b also update 2003-06-23 22:16:13 +00:00
Glenn Maynard f9a974a949 update 2003-06-23 22:15:50 +00:00
Glenn Maynard f837324da4 fix scoring problems with nonstop courses 2003-06-23 22:05:24 +00:00
Glenn Maynard 9337996cff clean up scoping 2003-06-23 17:53:53 +00:00
Glenn Maynard a026a7d9f6 remove m_bUseBGIfNoBanner and m_BannerCacheType 2003-06-23 08:39:34 +00:00
Glenn Maynard dc575db261 Menu music when in sort sort. 2003-06-23 08:37:53 +00:00
Glenn Maynard cc0a1deb0a forgot to commit:
difficulty display is vertical, not horizontal
2003-06-23 07:29:08 +00:00
Glenn Maynard 77dd9b9080 Fix overriding fail mode. 2003-06-23 07:27:51 +00:00
Glenn Maynard 088c6b4ca0 fix MIA ScreenInstructions 2003-06-23 06:53:36 +00:00
Glenn Maynard f2cb90da2a Fix BPM sort. 2003-06-23 06:45:47 +00:00
Glenn Maynard d4ba28c75b Fix Kasahara Hiroko.
TM4 update.
2003-06-23 06:06:58 +00:00
Glenn Maynard a15f9de55e Update, fixes, TM4 stuff. 2003-06-23 06:04:45 +00:00
Glenn Maynard eafe1330b2 update 2003-06-23 06:03:17 +00:00
Glenn Maynard 21683d3d9a Make japanese 24px a little smaller, since it's overflowing the frames
a little.  Improve alignment.
2003-06-23 06:02:54 +00:00
Glenn Maynard efb4478a88 re-add translit control 2003-06-23 03:57:59 +00:00
Glenn Maynard 64cb22a784 gar, fixing -kb 2003-06-23 01:55:26 +00:00