aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2022-04-21 11:52:47 +0200
committerDrew DeVault <sir@cmpwn.com>2022-04-21 11:52:47 +0200
commitf741ea6388b09d321eb42dcaf3d74918b80db6cf (patch)
treedd80e9e8f01a24fd423a756fab18ce849f80d016 /cmd
parentRename SDL_GameControllerBUtton to SDL_GameControllerButton (diff)
downloadhare-chip8-f741ea6388b09d321eb42dcaf3d74918b80db6cf.tar.gz
Use def for SDL_INIT_*
Diffstat (limited to 'cmd')
-rw-r--r--cmd/demo/main.ha6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/demo/main.ha b/cmd/demo/main.ha
index a6f2a92..82de229 100644
--- a/cmd/demo/main.ha
+++ b/cmd/demo/main.ha
@@ -33,9 +33,9 @@ export fn main() void = {
};
fn run() (void | fs::error | sdl2::error) = {
- sdl2::SDL_Init(sdl2::init_flags::VIDEO
- | sdl2::init_flags::AUDIO
- | sdl2::init_flags::GAMECONTROLLER)!;
+ sdl2::SDL_Init(sdl2::SDL_INIT_VIDEO
+ | sdl2::SDL_INIT_AUDIO
+ | sdl2::SDL_INIT_GAMECONTROLLER)!;
defer sdl2::SDL_Quit();
image::IMG_Init(image::IMG_InitFlags::PNG | image::IMG_InitFlags::JPG)!;
defer image::IMG_Quit();