diff options
author | Marc Sunet <jeannekamikaze@gmail.com> | 2012-08-30 12:53:13 +0200 |
---|---|---|
committer | Marc Sunet <jeannekamikaze@gmail.com> | 2012-08-30 12:53:13 +0200 |
commit | 4f5d2769cbf308f17a33ca6576d95b4b3478ca72 (patch) | |
tree | 17840fec2c08143b276e6778791b9d8a605cd9ec | |
parent | 56a7e6afb08f9bb2f9f4d2d9054259b3e7011329 (diff) |
Application now triggers an initial window resize
-rw-r--r-- | Spear.lkshw | 2 | ||||
-rw-r--r-- | Spear/App/Application.hs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Spear.lkshw b/Spear.lkshw index 0f8f6de..24a6e94 100644 --- a/Spear.lkshw +++ b/Spear.lkshw | |||
@@ -1,7 +1,7 @@ | |||
1 | Version of workspace file format: | 1 | Version of workspace file format: |
2 | 1 | 2 | 1 |
3 | Time of storage: | 3 | Time of storage: |
4 | "Thu Aug 30 12:40:21 CEST 2012" | 4 | "Thu Aug 30 12:51:30 CEST 2012" |
5 | Name of the workspace: | 5 | Name of the workspace: |
6 | "Spear" | 6 | "Spear" |
7 | File paths of contained packages: | 7 | File paths of contained packages: |
diff --git a/Spear/App/Application.hs b/Spear/App/Application.hs index a547c37..8bab9d4 100644 --- a/Spear/App/Application.hs +++ b/Spear/App/Application.hs | |||
@@ -65,6 +65,7 @@ setup (w, h) displayBits windowMode (major, minor) onResize' = do | |||
65 | GL.viewport $= (Position 0 0, Size (fromIntegral w) (fromIntegral h)) | 65 | GL.viewport $= (Position 0 0, Size (fromIntegral w) (fromIntegral h)) |
66 | 66 | ||
67 | windowSizeCallback $= (onResize onResize') | 67 | windowSizeCallback $= (onResize onResize') |
68 | onResize' (Size (fromIntegral w) (fromIntegral h)) | ||
68 | 69 | ||
69 | initialiseTimingSubsystem | 70 | initialiseTimingSubsystem |
70 | 71 | ||