mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 20:42:07 +01:00
parent
5c1b0bbcec
commit
75a024e40e
@ -190,8 +190,8 @@ func getDpiForMonitor(hMonitor uintptr, dpiType uintptr, dpiX, dpiY uintptr) err
|
|||||||
func getFromLogPixelSx() float64 {
|
func getFromLogPixelSx() float64 {
|
||||||
dc, err := getWindowDC(0)
|
dc, err := getWindowDC(0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// On Wine, it looks like GetWindowDC(0) doesn't work (#738).
|
// On Wine, it looks like GetWindowDC(0) doesn't work (#738, #743).
|
||||||
if err.(*winErr).Code == 1400 {
|
if code := err.(*winErr).Code; code == 1400 || code == 1812 {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user