try again for Windows

This commit is contained in:
RSDuck 2022-10-13 02:01:19 +02:00
parent 81ab444d76
commit 8ebe8711bb
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ jobs:
update: true update: true
- name: Install dependencies - 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 - name: Create build environment
working-directory: ${{runner.workspace}} working-directory: ${{runner.workspace}}

View File

@ -1280,7 +1280,7 @@ qreal ScreenPanelGL::devicePixelRatioFromScreen() const
{ {
const QScreen* screen_for_ratio = window()->windowHandle()->screen(); const QScreen* screen_for_ratio = window()->windowHandle()->screen();
if (!screen_for_ratio) if (!screen_for_ratio)
screen_for_ratio = QGuiApplication::primaryScreen(); screen_for_ratio = QGuiApplication::primaryScreen();
return screen_for_ratio ? screen_for_ratio->devicePixelRatio() : static_cast<qreal>(1); return screen_for_ratio ? screen_for_ratio->devicePixelRatio() : static_cast<qreal>(1);
} }