Glenn Maynard
c88ddccc73
Native Win32 LowLevelWindow. This gets rid of SDL in Windows.
...
It seems to handle mode switching slightly better in OpenGL: I still
get the "windows resize to the fullscreen resolution" and "maximized
windows go under the taskbar" problems occasionally when I change the
resolution in game, but they no longer happen when I simply play the game
in fullscreen. We also can avoid reloading textures on mode change in
many cases. (This is not going into the 3.9 release.)
2004-09-21 08:54:49 +00:00
Glenn Maynard
cd61a9fd27
fix SDL_VIDEODRIVER not being set for SDL loading windows
2004-09-16 21:32:14 +00:00
Glenn Maynard
51a259c6a5
log SDL_GetAppState
2004-09-14 19:05:53 +00:00
Steve Checkoway
a9d0169058
Don't show/hide the cursor unless the video mode change was successful.
2004-08-21 06:27:31 +00:00
Hugo Hromic M
03b5a724e9
Make mouse cursor off by default before creating the window
2004-08-21 04:53:07 +00:00
Steve Checkoway
c92d595bc4
Show/hide the cursor after setting the video mode.
2004-08-07 00:59:01 +00:00
Steve Checkoway
f5ec5019d6
simplify
2004-06-19 06:46:13 +00:00
Glenn Maynard
7ef3d3e6bb
set g_X11Display
2004-06-14 05:50:40 +00:00
Glenn Maynard
34b3862833
log SDL version
2004-06-14 05:19:42 +00:00
Glenn Maynard
c2d109dc02
events
2004-06-14 03:55:38 +00:00
Glenn Maynard
03e11c81a1
call SDL_UpdateHWnd
2004-06-14 03:34:38 +00:00
Glenn Maynard
f4cea53212
HandleSDLEvents, comment
2004-06-14 03:13:13 +00:00
Glenn Maynard
9553f513c2
fix confusing SDL error message
2004-05-20 23:50:34 +00:00
Glenn Maynard
97791d82f0
license update
2004-05-15 22:30:30 +00:00
Glenn Maynard
e2d6911fb9
set SDL_VIDEODRIVER so SDL doesn't try to fire up aalib, etc
2004-04-10 06:28:08 +00:00
Glenn Maynard
52092e810e
fix LowLevelWindow_SDL::TryVideoMode sometimes returning "" on failure
...
due to SDL bugs
2004-04-09 21:53:41 +00:00
Glenn Maynard
87d2e439eb
hack to support vsync on nVidia cards in Linux
2004-01-03 06:58:30 +00:00
Glenn Maynard
6009d8fa88
API update
2003-09-30 00:16:14 +00:00
Glenn Maynard
3728708145
Improve error messages when OpenGL video init fails
2003-08-28 00:08:01 +00:00
Glenn Maynard
f39ad2a9a7
This is unused. If you're not using OpenGL, don't compile LowLevelWindow at all.
2003-08-27 23:33:18 +00:00
Steve Checkoway
6192aba094
NULL, not SDL
2003-07-22 15:52:32 +00:00
Chris Danford
278cb4c3f1
runs on Xbox
2003-07-22 07:47:27 +00:00
Chris Danford
a3e4ebca3f
fix incorrect window title and lost alpha in window icon
2003-06-16 20:54:10 +00:00
Glenn Maynard
3d43798f88
Handle SDL_INIT_VIDEO failing, so we don't crash later.
2003-06-11 03:17:39 +00:00
Chris Danford
428d560a6b
Clean up resolution fallback logic
...
Add video settings for G400
Working on composited text
2003-06-05 19:29:27 +00:00
Chris Danford
c54214c1d2
On first run, run a gameplay benchmark and adjusts graphic options automatically for 60 fps.
2003-05-26 09:18:44 +00:00
Glenn Maynard
35405bc34c
remove log
2003-05-26 01:51:59 +00:00
Glenn Maynard
e173d576f2
Use mySDL_EventState. Set up event types in the ctor.
...
Restore event masks when we change modes. It's vital that we not
do this incorrectly. Resetting the video system resets the mask. If we
have events that are enabled that we don't actually monitor, it'll just stay
in the event queue and eventually fill it.
Re-fix alt-enter causing both keys to "stick".
2003-05-26 01:47:57 +00:00
Chris Danford
bb089f467e
consolidate SDL icon changing code
2003-05-25 21:58:34 +00:00
Chris Danford
6b63ef50f9
support theme-specific program icon and window title (useful for non-SM products)
2003-05-25 20:19:01 +00:00
Chris Danford
36cdb56d55
For now, always get a new OpenGL context in SetVideoMode. Reusing the same context doesn't seem to be working.
...
Call SetVideoMode when app is fullscreen and regains focus. Did our OGL renderer ever handle Alt+tabbing before this change?
2003-05-24 16:29:36 +00:00
Chris Danford
cfe1f9ec67
Add parameters to BackgroundChange: fRate, bFadeLast, bRewindMovie, bLoop.
...
I don't like how this changes the syntax for the #BGCHANGES tag in an SM file. I will think more about this - it's important to finalize it quickly.
2003-04-14 04:10:01 +00:00
Glenn Maynard
eb1e2a0435
use SDL_GetEvent
2003-04-12 19:03:02 +00:00
Glenn Maynard
ca1b94a043
LLW_SDL now handles its own SDL events, instead of being fed them
...
by StepMania.cpp. This simplifies things; SM.cpp no longer has to
direct SDL messages all over the place.
2003-04-12 02:30:28 +00:00
Glenn Maynard
d821c4f1b5
add LowLevelWindow
2003-04-07 00:54:32 +00:00