Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard d84c8b6cae vc6 2005-11-25 02:52:01 +00:00
Glenn Maynard 78dd08df43 VC6 workaround 2005-11-25 02:33:50 +00:00
Glenn Maynard 31ef353ed6 fix bogus resolutions being set 2005-11-24 18:28:52 +00:00
Glenn Maynard 92c3de82d6 cleanups 2005-11-23 22:47:47 +00:00
Glenn Maynard ecd8d199bd missed commit: update for USB cleanup 2005-11-23 22:43:17 +00:00
Glenn Maynard 3583c8fe78 fix 2005-11-23 22:42:24 +00:00
Glenn Maynard f5cdefca17 fix old bug 2005-11-23 20:34:10 +00:00
Glenn Maynard d9f3f093f3 clean up old code 2005-11-23 20:32:32 +00:00
Glenn Maynard a42177e5df remove old comments: this is all in RageSoundPosMap now 2005-11-23 19:03:04 +00:00
Glenn Maynard 217193ce45 fix old comments. This is a case where comments are a problem: these
comments fell behind the code.  In this case, it's better to use a better
name than "iSize" which indicates units, eg. "iBytes" or "iFrames", than
to explain the units in a comment.
2005-11-23 19:00:32 +00:00
Glenn Maynard 32e4c0ba6e cleanup 2005-11-23 18:58:25 +00:00
Glenn Maynard d868908941 fix comment more 2005-11-23 18:53:31 +00:00
Glenn Maynard 3a77a52dba this only returns bool; fix comment 2005-11-23 18:52:49 +00:00
Glenn Maynard 599636992e cleanup 2005-11-23 18:51:00 +00:00
Glenn Maynard 8f26a6c2ec the sound must not already be playing 2005-11-23 18:31:29 +00:00
Glenn Maynard 09bc71b595 cleanup 2005-11-23 17:06:10 +00:00
Glenn Maynard 1b690264e3 that's not right: clamp(x,a,b) is not well-defined if a > b 2005-11-23 17:00:23 +00:00
Glenn Maynard ae712f3126 cleanup 2005-11-23 16:56:36 +00:00
Glenn Maynard d08e4d0a14 LoadingWindow_SDL 2005-11-23 16:19:25 +00:00
Glenn Maynard efae87bb4b HAVE_SDL is only defined on OSX, and that has its own loading window. Remove
LoadingWindow_SDL.  (This is still marginally useful, since we don't have a native
X11, non-GTK loading window yet.  But using SDL at all is a hassle, and it hasn't
been active in a long time, so let's remove this and add a native loading
window later if wanted instead of  keeping this around.)
2005-11-23 16:17:14 +00:00
Glenn Maynard df8b9f681b remove old code 2005-11-23 16:11:28 +00:00
Glenn Maynard b17cfcb0eb Use VC 2003. 2005-11-23 15:44:59 +00:00
Glenn Maynard 8142decec5 fix search/replace 2005-11-23 02:21:41 +00:00
Glenn Maynard a969716c00 add zlib test 2005-11-22 22:35:46 +00:00
Glenn Maynard 79fcf408d6 unneeded 2005-11-22 21:21:48 +00:00
Glenn Maynard 90ad56522c move GetCommandlineArgument, g_argc and g_argv into RageUtil.cpp,
so tests don't have to duplicate stuff, and because PrefsManager
uses it
2005-11-22 21:18:43 +00:00
Glenn Maynard dbbb29bb05 fix RageFileObjInflate not always flushing the end of files properly 2005-11-22 21:08:39 +00:00
Glenn Maynard 492791d56f cleanup 2005-11-22 20:33:52 +00:00
Glenn Maynard 3b270a96c8 fix g++ 3.3 compile 2005-11-22 20:27:15 +00:00
Glenn Maynard 7828dd60ad g_X11Display is unused 2005-11-13 19:09:13 +00:00
Glenn Maynard 0ab285b40a g_X11Display -> X11Helper::Dpy 2005-11-13 19:05:30 +00:00
Glenn Maynard 7803d84ddd Disable the X11 screensaver in LowLevelWindow_X11. 2005-11-13 19:04:07 +00:00
Glenn Maynard e42c227d33 cleanup 2005-11-13 18:58:54 +00:00
Glenn Maynard 2b9b2a7434 remove unused 2005-11-13 18:58:31 +00:00
Glenn Maynard 1cb4525ee6 LowLevelWindow_X11::IsSoftwareRenderer 2005-11-13 18:56:14 +00:00
Glenn Maynard 92504b10cc LowLevelWindow_Win32::IsSoftwareRenderer 2005-11-13 18:55:30 +00:00
Glenn Maynard 05233a7af8 use LowLevelWindow::IsSoftwareRenderer 2005-11-13 18:54:09 +00:00
Glenn Maynard 071ff2adb5 LowLevelWindow::IsSoftwareRenderer 2005-11-13 18:53:48 +00:00
Glenn Maynard 9c17980ed5 move some GLX-specific stuff into LowLevelWindow_X11 2005-11-13 18:43:22 +00:00
Glenn Maynard 7f95e0a309 calling straightforward code an "ugly hackish mess" falls just short of productive and appropriate 2005-11-13 18:38:55 +00:00
Glenn Maynard fec044a796 general minor cosmetics 2005-11-13 18:22:52 +00:00
Glenn Maynard 4f52fab65a In OpenGL (not D3D), it's our job to unset and reset the full-screen video mode
when we lose focus.
2005-11-11 21:22:18 +00:00
Glenn Maynard 4d8ab8a6f6 use ArchHooks::CheckForMultipleInstances. Uses AllowMultipleInstances
pref to disable for advanced use; I sometimes start multiple windows, to
eg. compare D3D and OGL live.
2005-11-11 21:13:13 +00:00
Glenn Maynard f0bb643e11 add ArchHooks::CheckForMultipleInstances 2005-11-11 21:10:10 +00:00
Glenn Maynard cbc31d637b easier to search for by class name 2005-11-11 21:08:35 +00:00
Glenn Maynard 799655dfa5 remove spurious warning 2005-11-11 21:05:05 +00:00
Glenn Maynard 9b39cc4f02 (untested) fix vsync on osx 2005-11-11 21:04:14 +00:00
Glenn Maynard 99fdf95d8e possibly fix stale extension function pointer use after losing context 2005-11-11 21:01:58 +00:00
Glenn Maynard 45650f732d cleanup 2005-11-11 20:58:07 +00:00
Glenn Maynard 3bbfe9ebc0 Two tests for not filling a buffer:
if( m_iBufferBytesFilled > m_iWriteAhead )

	int iNumBytesEmpty = m_iWriteAhead - m_iBufferBytesFilled;
	if( iNumBytesEmpty < iChunksize )

The latter, manipulated a bit, is actually:

	if( m_iBufferBytesFilled+iChunksize >= m_iWriteAhead )

These do almost the same thing.  This isn't what was intended.  The
former checks whether we *want* to write another buffer (based on our
preferred writeahead).  The latter was meant to check whether it's *possible*
to fit another chunk into the buffer.  It should check against m_iBufferSize,
not m_iWriteAhead.

This fixes writeahead: 4096 means "write if we have less than 4096 frames
buffered", not "write if writing the new chunk would result in still having
less than 4096 frames buffered".  This is important on slower devices, like
USB headsets.
2005-11-10 22:10:05 +00:00
Glenn Maynard 553bc91559 cleanup 2005-11-09 14:23:23 +00:00
Glenn Maynard 48ce4bf80c cleanup 2005-11-09 14:10:48 +00:00
Glenn Maynard 9d090cbe7d static 2005-11-09 13:34:17 +00:00
Glenn Maynard 089a187a6c fix empty loading window title 2005-11-09 03:57:29 +00:00
Glenn Maynard 6671b6b207 fix memory log 2005-11-09 02:01:56 +00:00
Glenn Maynard 946fce020b If BeginFrame returns false (eg. we have no drawing context), then EndFrame
will never be called.  This caused messages to not be handled when we lose
focus in fullscreen, so we could never regain focus.
2005-11-09 00:19:02 +00:00
Glenn Maynard 8e976a275a simplify FindSystemFile 2005-11-07 16:26:47 +00:00
Glenn Maynard b35541b4ce simplify 2005-11-06 23:03:23 +00:00
Glenn Maynard f5c9f4661f Modify the existing viewport, instead of constructing a new one. Fixes
resizing problems.
2005-11-06 23:02:23 +00:00
Glenn Maynard 4c874a943b include cleanup 2005-11-06 18:03:47 +00:00
Glenn Maynard 95b71dbd3b cleanup 2005-11-06 15:24:26 +00:00
Glenn Maynard b691117e2c cleanup 2005-11-06 13:00:34 +00:00
Glenn Maynard a8247bd45b threaded linux driver 2005-11-06 12:18:37 +00:00
Glenn Maynard 499dcf9c32 debouncing code broke handling of threaded inputs; fix 2005-11-06 12:14:35 +00:00
Glenn Maynard 40b0dec7c4 clean up weird capitalization 2005-11-06 12:12:18 +00:00
Glenn Maynard d508be4b88 fix RageTimer::Half averaging backwards
cleanup comment
2005-11-06 02:41:26 +00:00
Glenn Maynard 3f5a42adc6 fix texture leak.
D3D has the best response to these reference leaks ever: on shutdown, some
part of window closing or screen mode resetting will freeze for about five seconds,
depending on the window mode.  No indication why is given.
2005-11-05 16:48:35 +00:00
Glenn Maynard 36b7ba7d0c revert horrible WinCVS braindamage 2005-11-05 16:20:53 +00:00
Glenn Maynard d7c160865a cvs upd -D "one week ago" RageDisplay_D3D.cpp 2005-11-05 16:18:56 +00:00
Glenn Maynard e378390803 fix non-sphere map path in RageDisplay_D3D::SendCurrentMatrices ignores 'tu'
fix SetTextureModeAdd alpha component (behavior to match GL_ADD)
2005-11-05 04:27:36 +00:00
Glenn Maynard 7cbba09b89 SetZBias in SetDefaultRenderStates 2005-11-04 15:42:20 +00:00
Glenn Maynard dc9f0ce241 fix D3D z-bias to work like OpenGL's glDepthRange 2005-11-04 15:04:35 +00:00
Glenn Maynard c8f38629ef ThemeManager::ReloadMetrics: only reload metrics, not the whole theme. This
is much less unintrusive, and fixes crashes on most "retry" theme dialogs due
to reloading and resetting Lua and other things unexpectedly in the middle of
a screen load.
2005-11-03 19:53:27 +00:00
Glenn Maynard c85965d054 handle language tags in files for translations 2005-11-03 18:11:40 +00:00
Glenn Maynard cfed90cfec Stop keeping theme metrics for each fallback theme separate. Just merge them
into one theme.  I'm not sure why this was done originally, but it was probably
related to the ugly "fallback themes can fork Fallback" behavior that was
removed recently.

This is simpler, and reduces overhead in looking up theme metrics.
2005-11-03 17:24:56 +00:00
Glenn Maynard 43acb27d00 cleanup 2005-11-03 16:38:15 +00:00
Glenn Maynard 4a37f2ecdc cleanup 2005-11-02 15:53:02 +00:00
Glenn Maynard f90a88719d "" -> CString() 2005-11-02 15:52:08 +00:00
Glenn Maynard 6c859a7631 cleanup 2005-11-02 15:45:45 +00:00
Glenn Maynard 067365215c simplify, compile fix 2005-11-01 23:54:19 +00:00
Glenn Maynard 4c2a8e3ba0 separate practice help, no record mappings in practice 2005-11-01 22:17:07 +00:00
Glenn Maynard 7465821f46 simplify 2005-11-01 21:43:10 +00:00
Glenn Maynard 9c0670b104 don't reset graphics for changing the language 2005-11-01 19:29:10 +00:00
Glenn Maynard a46086fdda Avoid extra work when changing the language and not the theme. 2005-11-01 19:15:26 +00:00
Glenn Maynard 826804bf84 It's too early to DoesLanguageExist at this point. Just return the preferred language; we'll fall back on BASE_LANGUAGE anyway. 2005-11-01 19:14:38 +00:00
Glenn Maynard fae57b297c fix log 2005-11-01 19:12:13 +00:00
Glenn Maynard 92b93dc689 fixing up language reverting to english 2005-11-01 18:13:32 +00:00
Glenn Maynard fe52b72f25 log in LoadThemeMetrics 2005-11-01 18:08:56 +00:00
Glenn Maynard 51e06fdc2b pass the language to LoadThemeRecursive and rename to LoadThemeMetrics 2005-11-01 18:04:59 +00:00
Glenn Maynard 1851fda405 move --metric hanlding to LoadThemeRecursive 2005-11-01 17:46:48 +00:00
Glenn Maynard 485bab571f move clean up of old themes to LoadThemeRecursive 2005-11-01 17:42:48 +00:00
Glenn Maynard b2aa109cbc GetLanguages: check all loaded themes 2005-11-01 17:05:07 +00:00
Glenn Maynard cbce8648e7 cleanup 2005-11-01 15:00:50 +00:00
Glenn Maynard c0094aecbf comment 2005-11-01 00:18:09 +00:00
Glenn Maynard ff0d50a6ab EDIT_MODE_PRACTICE bindings 2005-11-01 00:17:26 +00:00
Glenn Maynard 24f5e87e60 predict_meter -> EDIT_MODE_FULL 2005-10-31 23:54:36 +00:00
Glenn Maynard b339832bbf GetSystemDefaultLangID -> GetUserDefaultLangID. (Like GetUserDefaultUILanguage,
this reports the correct answer on my system.  GUDUIL() is for multilanguage
versions of Windows, I think.)
2005-10-31 23:51:52 +00:00
Glenn Maynard 7d3bb719f6 GetLineWidthInSourcePixels including overdraw causes a problem. Text is left-
aligned by default; we add the value of GetLineWidthInSourcePixels to right-
align (and n/2 to center-align).  This causes left-alignment to be flush, with
overdraw over the alignment (correct), but right-alignment to align against
the overdraw.  This causes fonts with borders to align with the border over
the edge on the left and against the edge on the right.

If we only include overdraw for cropping and scaling, and not positioning, then
we're inconsistent.  For example, if we have a border with 100 pixels of space,
and we scale to 100 pixels in this way, the text will be scaled to exactly 100
pixels, but if left- or right-aligned against the border, will overlap the border
and not actually use the whole space.  We need to be consistent: either consider
the overdraw part of the character or don't.

Ultimately, the overdraw was intended to not be considered part of the character
itself.  It's intended for use with fonts with borders/strokes/glow around lettering.
That causes every character in a font to be widened, usually uniformly.  This
tends to not increase the subjective width of the character: if aligning hard
against a border, these features should be ignored.  So, let's go back to the
original intent, and don't consider overdraw part of the character.
2005-10-31 14:56:27 +00:00
Glenn Maynard 92b790b9ee fix LoadingScreen not set correctly for SEdit MinMenus 2005-10-31 04:05:26 +00:00
Glenn Maynard 0361ad99d9 update comment 2005-10-31 04:03:16 +00:00