Skip to content
Snippets Groups Projects
Unverified Commit 65f39080 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #2058 from ReinUsesLisp/trunc-warning

video_core: Silent implicit conversion warning
parents 6957bac0 fc6d46c3
No related branches found
No related tags found
No related merge requests found
...@@ -16,9 +16,10 @@ std::unique_ptr<RendererBase> CreateRenderer(Core::Frontend::EmuWindow& emu_wind ...@@ -16,9 +16,10 @@ std::unique_ptr<RendererBase> CreateRenderer(Core::Frontend::EmuWindow& emu_wind
} }
u16 GetResolutionScaleFactor(const RendererBase& renderer) { u16 GetResolutionScaleFactor(const RendererBase& renderer) {
return !Settings::values.resolution_factor return static_cast<u16>(
? renderer.GetRenderWindow().GetFramebufferLayout().GetScalingRatio() Settings::values.resolution_factor
: Settings::values.resolution_factor; ? Settings::values.resolution_factor
: renderer.GetRenderWindow().GetFramebufferLayout().GetScalingRatio());
} }
} // namespace VideoCore } // namespace VideoCore
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment