summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-04-18 20:39:29 +0000
committerDavid Athay <ko2fan@gmail.com>2008-04-18 20:39:29 +0000
commit1f08333d22512ea6a1e769475c873fa50415f404 (patch)
tree8870ce4cfa69603e130e9a5268588c43577829f1
parent5744876f2f8da0ae48d90a746508a8ff96c91510 (diff)
downloadmana-1f08333d22512ea6a1e769475c873fa50415f404.tar.gz
mana-1f08333d22512ea6a1e769475c873fa50415f404.tar.bz2
mana-1f08333d22512ea6a1e769475c873fa50415f404.tar.xz
mana-1f08333d22512ea6a1e769475c873fa50415f404.zip
Mac now uses Apple key for
emoticons, so alt can be used for alternate characters. Disable vsync on mac.
-rw-r--r--ChangeLog6
-rw-r--r--src/game.cpp4
-rw-r--r--src/openglgraphics.cpp4
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e9e01f07..5a4550f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-18 David Athay <ko2fan@gmail.com>
+
+ * src/game.cpp, src/openglgraphics.cpp: Mac now uses Apple key for
+ emoticons, so alt can be used for alternate characters. Disable vsync
+ on mac.
+
2008-04-17 Dennis Friis <peavey@placid.dk>
* src/gui/sell.cpp: Fix shop list not to scroll to top when selling.
diff --git a/src/game.cpp b/src/game.cpp
index 9eadeba0..e963b5d7 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -613,7 +613,11 @@ void Game::handleInput()
// Keys pressed together with Alt/Meta
// Emotions and some internal gui windows
+ #ifndef __APPLE__
if (event.key.keysym.mod & KMOD_ALT)
+ #else
+ if (event.key.keysym.mod & KMOD_LMETA)
+ #endif
{
switch (event.key.keysym.sym)
{
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index 76eff9f5..5b34de18 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -76,8 +76,8 @@ bool OpenGLGraphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel)
}
#ifdef __APPLE__
- long VBL = 1;
- CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &VBL);
+// long VBL = 1;
+// CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &VBL);
#endif
// Setup OpenGL