diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2010-03-06 02:01:37 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2010-03-06 02:01:37 +0100 |
commit | 000f7b30b74e0d64c8c33c3617a249061ce4eb21 (patch) | |
tree | b9aa638987565a34c3d721e6bf55866773d2c925 | |
parent | 0fb75af68220527fb10ab0ce39e35f61cba67e4c (diff) | |
download | htanks-000f7b30b74e0d64c8c33c3617a249061ce4eb21.tar htanks-000f7b30b74e0d64c8c33c3617a249061ce4eb21.zip |
Set correct scale with tiling window managers
-rw-r--r-- | GLX.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |