mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Merge pull request #8366 from Techjar/high-dpi-auto-adjust
Qt/RenderWidget: Account for devicePixelRatio when auto-adjusting window size
This commit is contained in:
commit
a0b7c1beae
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ RenderWidget::RenderWidget(QWidget* parent) : QWidget(parent)
|
||||||
if (!Config::Get(Config::MAIN_RENDER_WINDOW_AUTOSIZE) || isFullScreen() || isMaximized())
|
if (!Config::Get(Config::MAIN_RENDER_WINDOW_AUTOSIZE) || isFullScreen() || isMaximized())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
resize(w, h);
|
const auto dpr = window()->windowHandle()->screen()->devicePixelRatio();
|
||||||
|
|
||||||
|
resize(w / dpr, h / dpr);
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) {
|
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue