Glenn Maynard
8d6c634d1e
clear these; they're global (though we won't create two RageDisplay_D3D
...
objects in one run)
2006-03-28 12:24:00 +00:00
Glenn Maynard
52ec9b3737
The half-pixel offset fix has been in world space: the theme's resolution
...
is usually 640x480, and we shifted by -0.5x-0.5 there. That works for 640x480,
but is incorrect for other resolutions. Do this in projection space, just like
the centering matrix.
An easy way to test this is to set 1280x960 (2x resolution), create a 1280x960
texture, and display it fullscreen in-game. Just like at 640x480 with a 640x480
graphic, the texture should be displayed pixel-for-pixel identically to the source
(when in 32-bit).
2006-03-26 22:06:19 +00:00
Glenn Maynard
72c25d79d9
now this seems backwards. Something else is funky ...
2006-03-16 00:50:47 +00:00
Glenn Maynard
6ddc84613d
fix d3d output off by one pixel
2006-03-14 07:33:46 +00:00
Chris Danford
4c0038e142
fix model glow
2006-02-28 17:50:00 +00:00
Glenn Maynard
fa1dec128f
cleanup
2006-02-08 03:43:49 +00:00
Glenn Maynard
4b09a38d36
build fix
2006-02-08 03:39:57 +00:00
Steve Checkoway
a65d13c6d1
class -> typedef set.
2006-02-07 08:29:36 +00:00
Glenn Maynard
47cd3ee640
fix vc7 compile
2006-02-07 07:12:42 +00:00
Chris Danford
bcf84d9bda
re-add Auto AR. Tie it to the desktop resolution which does not change when toggling between fullscreen and windowed. This assumes that the desktop resolution is using square pixels. This assumption will hold true for all out-of-the-box machines with a widescreen display.
2006-02-06 23:40:28 +00:00
Chris Danford
025e970b3d
make hard-coded strings localizable
2006-02-06 20:41:05 +00:00
Chris Danford
dbafa29a88
make RageDisplay::Init virtual to remove dupe code
2006-02-06 20:14:02 +00:00
Renaud Lepage
11af21d11b
Reverted a change, and put the IFDEF a little higher for testing purposes.
2006-01-24 00:21:11 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Chris Danford
65aff05a13
fix compile
2006-01-20 08:33:27 +00:00
Glenn Maynard
aeee577a35
cleanup
2006-01-20 05:14:31 +00:00
Glenn Maynard
b11705de07
When we get D3DERR_DEVICENOTRESET, we should go back to the mode
...
we were in when we lost the device, not do a complete mode search
from scratch. This fixes a dependency on the behavior of storing
the last successful mode change back into PREFSMAN. (This is
D3D's equivalent to the WM_ACTIVATE -> ChangeDisplaySettings code
in GraphicsWindow.)
2006-01-20 00:16:26 +00:00
Glenn Maynard
626427c00c
clear g_TexResourceToPaletteIndex in SetD3DParams
2006-01-19 23:59:17 +00:00
Glenn Maynard
fbdfd26ae1
split out SetPresentParametersFromVideoModeParams to make
...
RageDisplay_D3D::TryVideoMode clearer
2006-01-19 23:57:40 +00:00
Glenn Maynard
7e5975597f
cleanup
2006-01-19 22:40:06 +00:00
Glenn Maynard
466bfb054c
cleanup
2006-01-19 22:38:30 +00:00
Glenn Maynard
defe191939
simplify
2006-01-17 01:45:39 +00:00
Glenn Maynard
affaf07d35
rename ConfigureGraphicsWindow -> CreateGraphicsWindow
2006-01-15 01:43:04 +00:00
Glenn Maynard
16c7813949
remove SetVideoModeParams call
2006-01-15 01:07:32 +00:00
Glenn Maynard
50b0f360f4
CreateGraphicsWindow is done by ConfigureGraphicsWindow
2006-01-15 00:59:32 +00:00
Glenn Maynard
e8b9863052
static
2005-12-29 19:34:28 +00:00
Glenn Maynard
cea50ab97c
header cleanup
2005-12-29 18:33:57 +00:00
Glenn Maynard
336e3be92b
call base (even though it happens to be a no-op right now)
2005-12-29 07:45:06 +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
Chris Danford
800158e185
move floating globals into a namespace
2005-12-02 01:16:28 +00:00
Chris Danford
730a113ed6
enumerate resolutions
...
use mixed case for prefs values
2005-11-26 07:22:33 +00:00
Chris Danford
b3c7b9c99d
fix viewport not correctly reset when alt+tabbing out of and back into full-screen opengl
2005-11-24 10:40:23 +00:00
Chris Danford
5c6457d938
make closer to OpenGL sphere mapping
2005-11-23 22:16:09 +00:00
Renaud Lepage
cb34951e33
Xbox fix for RGBA8
2005-11-16 04:28:44 +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
Chris Danford
d081c0902c
make sphere mapping texture coords look more like OpenGL (though it's still significantly different when viewing side-by-side)
2005-11-11 21:11:30 +00:00
Chris Danford
311fd70573
when resetting the D3D device, use the preferred video mode and not the current desktop mode. This fixes "Win98, full-screen, alt-tab away, alt-tab back and the game is running fullscreen at the desktop video mode"
2005-11-10 18:55:03 +00:00
Chris Danford
7f5a4b8373
move VideoModeParams out of RageDisplay to reduce header dependencies
2005-11-10 18:37:04 +00:00
Chris Danford
af115bab90
handle sentinel values for refresh rate instead of asserting
2005-11-10 10:22:15 +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
Chris Danford
44e517339d
make env mapping match OpenGL's "sphere map" tex coord gen
2005-11-07 03:58:14 +00:00
Chris Danford
bfc7a6b758
Undo attempt at vsync in windowed mode. It's causing jerky animation and aparent skipping (even though the skip display isn't showing any hiccups)
2005-11-07 00:43:50 +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
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
Chris Danford
b2b65c2711
cleanup xbox comment
2005-11-05 07:03:05 +00:00
Chris Danford
aca5ee8677
fix Vsync in windowed
2005-11-05 06:55:23 +00:00