fixed OSX usability properly, hopefully
This commit is contained in:
@@ -60,10 +60,17 @@ namespace OpenRa.GlRenderer
|
|||||||
Sdl.SDL_GL_SetAttribute(Sdl.SDL_GL_ALPHA_SIZE, 8);
|
Sdl.SDL_GL_SetAttribute(Sdl.SDL_GL_ALPHA_SIZE, 8);
|
||||||
|
|
||||||
|
|
||||||
// Breaks os x usability
|
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
||||||
//Environment.SetEnvironmentVariable("SDL_VIDEO_WINDOW_POS", "0,0");
|
{
|
||||||
//surf = Sdl.SDL_SetVideoMode(width, height, 0, Sdl.SDL_NOFRAME | Sdl.SDL_OPENGL | (windowed ? 0 : Sdl.SDL_FULLSCREEN));
|
// pseudo-fullscreen, for sane debugging.
|
||||||
surf = Sdl.SDL_SetVideoMode(width, height, 0, Sdl.SDL_OPENGL | (windowed ? 0 : Sdl.SDL_FULLSCREEN));
|
Environment.SetEnvironmentVariable("SDL_VIDEO_WINDOW_POS", "0,0");
|
||||||
|
surf = Sdl.SDL_SetVideoMode(width, height, 0, Sdl.SDL_NOFRAME | Sdl.SDL_OPENGL | (windowed ? 0 : Sdl.SDL_FULLSCREEN));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// OSX doesn't like this, due to quirks of their WM.
|
||||||
|
surf = Sdl.SDL_SetVideoMode(width, height, 0, Sdl.SDL_OPENGL | (windowed ? 0 : Sdl.SDL_FULLSCREEN));
|
||||||
|
}
|
||||||
|
|
||||||
Sdl.SDL_WM_SetCaption("OpenRA", "OpenRA");
|
Sdl.SDL_WM_SetCaption("OpenRA", "OpenRA");
|
||||||
Sdl.SDL_ShowCursor(0);
|
Sdl.SDL_ShowCursor(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user