Glenn Maynard
6c8c558d43
Rage* shouldn't depend on ScreenDimensions (uses ThemeMan)
2005-12-04 17:58:25 +00:00
Glenn Maynard
a2ada6b973
Rage* shouldn't depend on ScreenDimensions (uses ThemeMan)
2005-12-04 17:16:52 +00:00
Glenn Maynard
e217a25dce
unused
2005-12-04 17:16:06 +00:00
Glenn Maynard
da20a407ff
remove RageDisplay_OGL::SetViewport; nothing changes the viewport
...
offset
2005-12-04 17:14:50 +00:00
Glenn Maynard
91250c21c5
cleanup
2005-12-04 16:59:53 +00:00
Glenn Maynard
538d933e87
maybe fix VC2005 warnings
2005-12-04 16:47:47 +00:00
Glenn Maynard
60bdd7ae04
fix "pull back camera" in widescreen
2005-12-02 16:48:13 +00:00
Glenn Maynard
1829ba9eee
cleanup
2005-12-01 00:10:09 +00:00
Glenn Maynard
b839369dc8
comment
2005-12-01 00:08:36 +00:00
Glenn Maynard
bb90407f8a
static
2005-12-01 00:07:47 +00:00
Glenn Maynard
0a961c49c8
Revert cropping. "scaletocover,0,0,SCREEN_WIDTH,SCREEN_HEIGHT"
...
achieves the same effect.
2005-11-30 23:29:16 +00:00
Glenn Maynard
76f05625d5
ZoomToWidth/ZoomToHeight obeys crop. This way,
...
CropToAspectRatio,16/9;
ZoomToWidth,SCREEN_WIDTH;
ZoomToHeight,SCREEN_HEIGHT
will zoom to the center 16:9 area of the image.
2005-11-30 23:11:31 +00:00
Glenn Maynard
c607f34d3a
add Actor::CropToAspectRatio
2005-11-30 23:02:22 +00:00
Glenn Maynard
05be71df90
remove unmaintained VC 7.0 project
2005-11-30 22:55:38 +00:00
Glenn Maynard
81c1217ef7
expose aspect ratios
2005-11-30 22:54:00 +00:00
Glenn Maynard
7df3399dec
partial revert for now
2005-11-29 18:05:16 +00:00
Glenn Maynard
8929a640a9
fix comment
2005-11-29 17:41:10 +00:00
Glenn Maynard
f33504c73f
LuaHelpers::PrepareExpression is used for metric compatibility; don't use
...
when loading from XML.
2005-11-29 17:36:19 +00:00
Glenn Maynard
ce84697994
reuse ActorFrame
2005-11-29 17:34:21 +00:00
Glenn Maynard
e2f20b43d5
don't reinit ActorFrame stuff
2005-11-29 17:27:34 +00:00
Glenn Maynard
348a3fb4e0
remove BGAnimationLayer::Unload, BGAnimationLayer::Init
2005-11-29 17:23:04 +00:00
Glenn Maynard
207987ec45
remove extra Init() calls
2005-11-29 17:20:10 +00:00
Glenn Maynard
8305eea9eb
handle 1280x1024 (dumb resolution that shouldn't exist)
...
"SAR" (mpeg-centric) -> more common "PAR"
2005-11-29 06:12:09 +00:00
Glenn Maynard
7a61e70c9a
eval StreamWidth
2005-11-29 05:56:20 +00:00
Glenn Maynard
476a0990ff
SetGlobal(float)
2005-11-29 05:24:48 +00:00
Glenn Maynard
c4aa5b70df
cleanup
2005-11-29 02:20:28 +00:00
Glenn Maynard
cd62607128
cleanup
2005-11-29 02:14:33 +00:00
Glenn Maynard
e130c39f86
Fix spurious ChangeDisplaySettings calls; this fixes extra
...
graphics hitches when entering fullscreen.
2005-11-29 00:44:42 +00:00
Glenn Maynard
be332f9883
remove old trace
2005-11-29 00:22:38 +00:00
Glenn Maynard
77c6ffdfd1
cleanup
2005-11-28 20:33:20 +00:00
Glenn Maynard
220602d4a2
fix lerp (obscure: this only matters for non-rectangular texture coordinates)
2005-11-28 18:08:51 +00:00
Glenn Maynard
b6ba17a7bb
fix busy looping on slower systems, inefficient buffer filling
2005-11-28 17:17:35 +00:00
Glenn Maynard
40c3fa3995
generalize texture coord gen
2005-11-28 16:54:19 +00:00
Glenn Maynard
5be508809b
When cropping, derive the texture coords from the vertices, so the
...
texture coord code doesn't have to know about the cropping code.
2005-11-28 16:36:15 +00:00
Glenn Maynard
b948f686cc
cleanup
2005-11-25 20:38:03 +00:00
Glenn Maynard
9ed3cde95a
cleanup
2005-11-25 18:36:44 +00:00
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