diff --git a/src/nostalgia/core/opengl/gfx.cpp b/src/nostalgia/core/opengl/gfx.cpp index ba6b0201..7de68842 100644 --- a/src/nostalgia/core/opengl/gfx.cpp +++ b/src/nostalgia/core/opengl/gfx.cpp @@ -421,7 +421,7 @@ uint8_t bgStatus(Context *ctx) noexcept { const auto &gctx = static_cast(*ctx); uint8_t out = 0; for (unsigned i = 0; i < gctx.cbbs.size(); ++i) { - out |= gctx.backgrounds[i].enabled << i; + out |= static_cast(static_cast(gctx.backgrounds[i].enabled) << i); } return out; } @@ -558,4 +558,4 @@ void drawMainView(core::Context *ctx, ox::Size const&renderSz) noexcept { } -} \ No newline at end of file +}