From f5b1da09b52fcf33100e600cb8455d121dc285b8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 7 Jun 2023 21:11:54 -0500 Subject: [PATCH] [nostalgia/core/opengl] Fix type conversion --- src/nostalgia/core/opengl/gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}