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