1
0
Fork 0
forked from suyu/suyu

video_core: Silent implicit conversion warning

This commit is contained in:
ReinUsesLisp 2019-01-26 02:22:40 -03:00
parent 1f4ca1e841
commit fc6d46c374

View file

@ -16,9 +16,10 @@ std::unique_ptr<RendererBase> CreateRenderer(Core::Frontend::EmuWindow& emu_wind
}
u16 GetResolutionScaleFactor(const RendererBase& renderer) {
return !Settings::values.resolution_factor
? renderer.GetRenderWindow().GetFramebufferLayout().GetScalingRatio()
: Settings::values.resolution_factor;
return static_cast<u16>(
Settings::values.resolution_factor
? Settings::values.resolution_factor
: renderer.GetRenderWindow().GetFramebufferLayout().GetScalingRatio());
}
} // namespace VideoCore