diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-11 19:58:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-11 23:36:49 +0300 |
commit | b6bf8e607146202b82b7943147fc5a99d4c46a60 (patch) | |
tree | 0465526af0ebefee944382af2869f08bfbcc7c94 /src/utils/sdl2helper.cpp | |
parent | dbf65ef9c85f1b1b93fc9666bda31c5e5171b8c7 (diff) | |
download | plus-b6bf8e607146202b82b7943147fc5a99d4c46a60.tar.gz plus-b6bf8e607146202b82b7943147fc5a99d4c46a60.tar.bz2 plus-b6bf8e607146202b82b7943147fc5a99d4c46a60.tar.xz plus-b6bf8e607146202b82b7943147fc5a99d4c46a60.zip |
Add option to set sdl logging level.
Only for SDL2.
Diffstat (limited to 'src/utils/sdl2helper.cpp')
-rw-r--r-- | src/utils/sdl2helper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp index da5b15e41..00893ce82 100644 --- a/src/utils/sdl2helper.cpp +++ b/src/utils/sdl2helper.cpp @@ -189,6 +189,11 @@ void SDL::initLogger() SDL2Logger::init(); } +void SDL::setLogLevel(const int level) +{ + SDL2Logger::setLogLevel(level); +} + void SDL::WaitThread(SDL_Thread *const thread) { if (thread != nullptr) |