diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-09-28 20:47:33 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-09-28 20:47:33 -0500 |
commit | 678464d24c9c5b689788c0ec17854611f127f863 (patch) | |
tree | bb02a16a60f09e9c1adaab23c5f61fc3e800a698 /src/sdl_context.cpp | |
parent | 6f44617d0a378d980de71e6a5e1d634bff95bbcb (diff) |
Diffstat (limited to 'src/sdl_context.cpp')
-rw-r--r-- | src/sdl_context.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sdl_context.cpp b/src/sdl_context.cpp index f52bbe9..7601d72 100644 --- a/src/sdl_context.cpp +++ b/src/sdl_context.cpp @@ -1,4 +1,5 @@ #include "sdl_context.hpp" +#include <fud_assert.hpp> #include <SDL.h> #include <cassert> @@ -6,6 +7,8 @@ namespace bookmouse { +using fud::assertFail; + SdlContext::SdlContext() { if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) { const auto* lastError = SDL_GetError(); @@ -36,7 +39,7 @@ SdlContext::SdlContext() { // From 2.0.18: Enable native IME. #ifdef SDL_HINT_IME_SHOW_UI auto hintSet = SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); - assert(hintSet == SDL_TRUE); + fudAssert(hintSet == SDL_TRUE); #endif } |