aboutsummaryrefslogtreecommitdiff
path: root/src/Chelleport/AppShell.hs
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-12-14 19:01:02 +0530
committerAkshay Nair <phenax5@gmail.com>2024-12-14 19:01:02 +0530
commit73564537897f7573690955596097085b711c92e5 (patch)
treefcc3a9dc40f43c18be62d766b1a7c2439125a2cb /src/Chelleport/AppShell.hs
parentf48587bda4dea13920a96dda06b735be484614a9 (diff)
downloadchelleport-73564537897f7573690955596097085b711c92e5.tar.gz
chelleport-73564537897f7573690955596097085b711c92e5.zip
Grid ui cleanup
Diffstat (limited to 'src/Chelleport/AppShell.hs')
-rw-r--r--src/Chelleport/AppShell.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Chelleport/AppShell.hs b/src/Chelleport/AppShell.hs
index 6a0195d..0a65ce2 100644
--- a/src/Chelleport/AppShell.hs
+++ b/src/Chelleport/AppShell.hs
@@ -1,6 +1,7 @@
module Chelleport.AppShell where
import Chelleport.Context (DrawContext (ctxRenderer, ctxWindow, ctxX11Display), createContext)
+import Chelleport.Draw (colorBackground)
import Control.Monad (foldM, unless)
import qualified Graphics.X11 as X11
import SDL (($=))
@@ -32,7 +33,7 @@ setupAppShell initState update eventHandler draw = do
appLoop drawCtx (state, sysState) = do
events <- SDL.pollEvents
- SDL.rendererDrawColor (ctxRenderer drawCtx) $= SDL.V4 0 0 0 0
+ SDL.rendererDrawColor (ctxRenderer drawCtx) $= colorBackground
SDL.clear $ ctxRenderer drawCtx
draw state drawCtx
SDL.present $ ctxRenderer drawCtx