Refactor window size, update selection cursor on new screen
This commit is contained in:
@@ -3,6 +3,6 @@ module Dodge.WindowSize where
|
||||
import Dodge.Data.Config
|
||||
|
||||
getWindowSize :: Integral a => (Configuration -> ResFactor) -> Configuration -> (a,a)
|
||||
getWindowSize f cfig = (g _windowX,g _windowY)
|
||||
getWindowSize f cfig = (g _windowX, g _windowY)
|
||||
where
|
||||
g h = fromIntegral $ round (h cfig) `div` resFactorNum (f cfig)
|
||||
g h = fromIntegral $ applyResFactor (f cfig) (h cfig)
|
||||
|
||||
Reference in New Issue
Block a user