diff --git a/src/decoder_oggvorbis.cpp b/src/decoder_oggvorbis.cpp index 1a69564fa6..536558d492 100644 --- a/src/decoder_oggvorbis.cpp +++ b/src/decoder_oggvorbis.cpp @@ -207,7 +207,14 @@ int OggVorbisDecoder::FillBuffer(uint8_t* buffer, int length) { #ifdef HAVE_TREMOR read = ov_read(ovf, reinterpret_cast(buffer + length - to_read), to_read, §ion); #else - read = ov_read(ovf, reinterpret_cast(buffer + length - to_read), to_read, 0/*LE*/, 2/*16bit*/, 1/*signed*/, §ion); +# if defined(__WIIU__) + // FIXME: This is the endianess of the audio and not of the host but the byteswapping in ov_read does + // not sound like it works + int byte_order = 1; // BE +# else + int byte_order = 0; // LE +#endif + read = ov_read(ovf, reinterpret_cast(buffer + length - to_read), to_read, byte_order, 2/*16bit*/, 1/*signed*/, §ion); #endif // stop decoding when error or end of file if (read <= 0) diff --git a/src/game_interpreter.cpp b/src/game_interpreter.cpp index 9330e2089f..5126a9ffa5 100644 --- a/src/game_interpreter.cpp +++ b/src/game_interpreter.cpp @@ -4041,6 +4041,12 @@ bool Game_Interpreter::CommandToggleFullscreen(lcf::rpg::EventCommand const& /* return true; } + auto cfg = DisplayUi->GetConfig(); + if (!cfg.fullscreen.IsOptionVisible() || cfg.fullscreen.IsLocked()) { + Output::Debug("ToggleFullscreen: Not supported on this platform"); + return true; + } + DisplayUi->ToggleFullscreen(); return true; }