mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
1ca0ecc10f
commit
6df87a0383
@ -631,6 +631,7 @@ func (u *UserInterface) SetCursorShape(shape driver.CursorShape) {
|
|||||||
|
|
||||||
func (u *UserInterface) DeviceScaleFactor() float64 {
|
func (u *UserInterface) DeviceScaleFactor() float64 {
|
||||||
if !u.isRunning() {
|
if !u.isRunning() {
|
||||||
|
// TODO: Use the initWindowPosition. This requires to convert the units correctly (#1575).
|
||||||
return devicescale.GetAt(u.initMonitor.GetPos())
|
return devicescale.GetAt(u.initMonitor.GetPos())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,8 +245,7 @@ func (w *window) SetSize(width, height int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w *window) SizeLimits() (minw, minh, maxw, maxh int) {
|
func (w *window) SizeLimits() (minw, minh, maxw, maxh int) {
|
||||||
minw, minh, maxw, maxh = w.ui.getWindowSizeLimitsInDP()
|
return w.ui.getWindowSizeLimitsInDP()
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *window) SetSizeLimits(minw, minh, maxw, maxh int) {
|
func (w *window) SetSizeLimits(minw, minh, maxw, maxh int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user