(Broken) commit mid shadow rework
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
module Dodge.WindowSize where
|
||||
|
||||
import Dodge.Data.Config
|
||||
|
||||
getWindowSize :: Configuration -> (Int, Int)
|
||||
getWindowSize cfig = (x `div` divRes,y `div` divRes)
|
||||
where
|
||||
x = round $ _windowX cfig
|
||||
y = round $ _windowY cfig
|
||||
divRes = resFactorNum $ _graphics_resolution_factor cfig
|
||||
Reference in New Issue
Block a user