summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-03-06 02:01:37 +0100
committerMatthias Schiffer <matthias@gamezock.de>2010-03-06 02:01:37 +0100
commit000f7b30b74e0d64c8c33c3617a249061ce4eb21 (patch)
treeb9aa638987565a34c3d721e6bf55866773d2c925
parent0fb75af68220527fb10ab0ce39e35f61cba67e4c (diff)
downloadhtanks-000f7b30b74e0d64c8c33c3617a249061ce4eb21.tar
htanks-000f7b30b74e0d64c8c33c3617a249061ce4eb21.zip
Set correct scale with tiling window managers
-rw-r--r--GLX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/GLX.hs b/GLX.hs
index affc185..0548bec 100644
--- a/GLX.hs
+++ b/GLX.hs
@@ -83,7 +83,8 @@ instance Driver GLX where
ctx <- with visualinfo $ \vi -> createContext disp vi (Context nullPtr) True
makeCurrent disp wnd ctx
- s <- resize 800 600
+ wa <- getWindowAttributes disp wnd
+ s <- resize (fromIntegral . wa_width $ wa) (fromIntegral . wa_height $ wa)
return GLX
{ glxDisplay = disp