address comment

This commit is contained in:
raven02
2020-02-10 00:08:25 +08:00
parent 9966e20bc9
commit 84281ad391
9 changed files with 28 additions and 24 deletions
+1 -2
View File
@@ -28,10 +28,9 @@ FramebufferLayout DefaultFrameLayout(u32 width, u32 height) {
FramebufferLayout res{width, height};
const float emulation_aspect_ratio =
Settings::values.stretch_to_full
Settings::values.stretch_to_fullscreen
? static_cast<float>(height) / width
: static_cast<float>(ScreenUndocked::Height) / ScreenUndocked::Width;
const auto window_aspect_ratio = static_cast<float>(height) / width;
const Common::Rectangle<u32> screen_window_area{0, 0, width, height};