Fix resize crash
This commit is contained in:
+2
-4
@@ -55,9 +55,7 @@ handleWindowMoveEvent mev =
|
||||
handleResizeEvent :: WindowSizeChangedEventData -> Universe -> Universe
|
||||
handleResizeEvent sev u =
|
||||
u
|
||||
& uvConfig . windowX .~ fromIntegral x
|
||||
& uvConfig . windowY .~ fromIntegral y
|
||||
-- & uvIOEffects %~ sideEffectUpdatePreload
|
||||
& uvIOEffects %~ (updatePreload >=>)
|
||||
& uvIOEffects %~ ( (updatePreload . updateconfig) >=>)
|
||||
where
|
||||
updateconfig = (uvConfig . windowX .~ fromIntegral x) . (uvConfig . windowY .~ fromIntegral y)
|
||||
V2 x y = windowSizeChangedEventSize sev
|
||||
|
||||
Reference in New Issue
Block a user