mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-14 00:58:51 +02:00
Qt/RenderWidget: Account for devicePixelRatio when auto-adjusting window size
This commit is contained in:
@ -51,7 +51,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) {
|
||||||
|
Reference in New Issue
Block a user