os x compat and basic app packaging

This commit is contained in:
pchote
2010-02-18 23:21:24 +13:00
parent 15034dd55b
commit ea6dbfc092
8 changed files with 51 additions and 13 deletions

View File

@@ -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");