Merge pull request #4628 from FearlessTobi/backport-some-stuff
Backport various minor frontend review changes from yuzu and port minor PR from yuzu
This commit is contained in:
commit
de1128c60d
6 changed files with 20 additions and 16 deletions
|
@ -46,7 +46,11 @@ public:
|
|||
return rasterizer.get();
|
||||
}
|
||||
|
||||
EmuWindow& GetRenderWindow() const {
|
||||
EmuWindow& GetRenderWindow() {
|
||||
return render_window;
|
||||
}
|
||||
|
||||
const EmuWindow& GetRenderWindow() const {
|
||||
return render_window;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,9 +71,9 @@ void RequestScreenshot(void* data, std::function<void()> callback,
|
|||
|
||||
u16 GetResolutionScaleFactor() {
|
||||
if (g_hw_renderer_enabled) {
|
||||
return !Settings::values.resolution_factor
|
||||
? g_renderer->GetRenderWindow().GetFramebufferLayout().GetScalingRatio()
|
||||
: Settings::values.resolution_factor;
|
||||
return Settings::values.resolution_factor
|
||||
? Settings::values.resolution_factor
|
||||
: g_renderer->GetRenderWindow().GetFramebufferLayout().GetScalingRatio();
|
||||
} else {
|
||||
// Software renderer always render at native resolution
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue