os x compat and basic app packaging
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#region Copyright & License Information
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
|
||||
* This file is part of OpenRA.
|
||||
@@ -58,8 +58,9 @@ namespace OpenRa.GlRenderer
|
||||
{
|
||||
Glfw.glfwInit();
|
||||
Glfw.glfwOpenWindow(width, height, 0, 0, 0, 0, 0, 0,
|
||||
/*fullscreen ? Glfw.GLFW_FULLSCREEN : */Glfw.GLFW_WINDOW);
|
||||
|
||||
/*fullscreen ? Glfw.GLFW_FULLSCREEN : */Glfw.GLFW_WINDOW);
|
||||
|
||||
Glfw.glfwSetWindowTitle("OpenRA");
|
||||
bool initDone = false;
|
||||
|
||||
var lastButtonBits = (MouseButtons)0;
|
||||
@@ -90,8 +91,9 @@ namespace OpenRa.GlRenderer
|
||||
windowCloseCallback = () =>
|
||||
{
|
||||
OpenRa.Game.Exit();
|
||||
Glfw.glfwIconifyWindow();
|
||||
return Gl.GL_FALSE;
|
||||
// This looks lame on os x
|
||||
//Glfw.glfwIconifyWindow();
|
||||
return Gl.GL_FALSE;
|
||||
};
|
||||
|
||||
Glfw.glfwSetWindowTitle("OpenRA");
|
||||
|
||||
Reference in New Issue
Block a user