Files
loop/src/Dodge/WindowSize.hs
T

9 lines
257 B
Haskell

module Dodge.WindowSize where
import Dodge.Data.Config
getWindowSize :: Integral a => (Configuration -> ResFactor) -> Configuration -> (a,a)
getWindowSize f cfig = (g _windowX, g _windowY)
where
g h = fromIntegral $ applyResFactor (f cfig) (h cfig)