Skip to content
Permalink
Browse files
Merge pull request #8366 from Techjar/high-dpi-auto-adjust
Qt/RenderWidget: Account for devicePixelRatio when auto-adjusting window size
  • Loading branch information
stenzek committed Jan 24, 2020
2 parents ea9b963 + 3006c73 commit a0b7c1b
Showing 1 changed file with 3 additions and 1 deletion.
@@ -52,7 +52,9 @@ RenderWidget::RenderWidget(QWidget* parent) : QWidget(parent)
if (!Config::Get(Config::MAIN_RENDER_WINDOW_AUTOSIZE) || isFullScreen() || isMaximized())
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) {

0 comments on commit a0b7c1b

Please sign in to comment.