From 8ebe8711bb7177dc27a0fcb995d8180b89c89e90 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Thu, 13 Oct 2022 02:01:19 +0200 Subject: [PATCH] try again for Windows --- .github/workflows/build-windows.yml | 2 +- src/frontend/qt_sdl/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 30dbc0b0..27a53a4c 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -27,7 +27,7 @@ jobs: update: true - name: Install dependencies - run: pacman -Sq --noconfirm git make mingw-w64-x86_64-pkgconf mingw-w64-x86_64-{cmake,mesa,SDL2,qt5-static,libslirp,libarchive,libepoxy,toolchain} + run: pacman -Sq --noconfirm git make pkgconf mingw-w64-x86_64-{cmake,mesa,SDL2,qt5-static,libslirp,libarchive,libepoxy,toolchain} - name: Create build environment working-directory: ${{runner.workspace}} diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index d60108da..b88e7e2f 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -1280,7 +1280,7 @@ qreal ScreenPanelGL::devicePixelRatioFromScreen() const { const QScreen* screen_for_ratio = window()->windowHandle()->screen(); if (!screen_for_ratio) - screen_for_ratio = QGuiApplication::primaryScreen(); + screen_for_ratio = QGuiApplication::primaryScreen(); return screen_for_ratio ? screen_for_ratio->devicePixelRatio() : static_cast(1); }