mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
try again for Windows
This commit is contained in:
2
.github/workflows/build-windows.yml
vendored
2
.github/workflows/build-windows.yml
vendored
@ -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}}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user