1
0
Fork 0
forked from suyu/suyu

Merge pull request #2058 from ReinUsesLisp/trunc-warning

video_core: Silent implicit conversion warning
This commit is contained in:
bunnei 2019-01-27 12:49:59 -05:00 committed by GitHub
commit 65f3908064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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