mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-24 20:36:24 -05:00
video_core: Silent implicit conversion warning
This commit is contained in:
parent
1f4ca1e841
commit
fc6d46c374
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue