Move pair to V2
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
module Dodge.WindowSize (getWindowSize) where
|
||||
|
||||
import Dodge.Data.Config
|
||||
import Linear
|
||||
|
||||
getWindowSize :: Integral a => (Config -> ResFactor) -> Config -> (a,a)
|
||||
getWindowSize f cfig = (g _windowX, g _windowY)
|
||||
getWindowSize :: Integral a => (Config -> ResFactor) -> Config -> V2 a
|
||||
getWindowSize f cfig = V2 (g _windowX) (g _windowY)
|
||||
where
|
||||
g h = fromIntegral $ applyResFactor (f cfig) (h cfig)
|
||||
|
||||
Reference in New Issue
Block a user