summaryrefslogtreecommitdiff
path: root/src/sdl_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl_context.cpp')
-rw-r--r--src/sdl_context.cpp5
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
}