not-fl3 / miniquad

Cross platform rendering in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows high dpi borderless fullscreen

bananaturtlesandwich opened this issue · comments

commented

on windows when the config is set to have both fullscreen and high_dpi as true

miniquad::conf::Conf {
            window_title: ":)".to_string(),
            sample_count: 8,
            fullscreen: true,
            high_dpi: true,
            ..Default::default()
        }

the window will start up like this
image

commented

found a workaround for now by using winres to set this manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    <asmv3:application>
        <asmv3:windowsSettings>
            <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
            <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
        </asmv3:windowsSettings>
    </asmv3:application>
</assembly>
commented

Fixed with my pr #327