mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
ui: Remove ScreenSizeEvent.Scale
This commit is contained in:
parent
6f50ef3604
commit
b0a7e13502
@ -20,7 +20,6 @@ type CloseEvent struct {
|
|||||||
type ScreenSizeEvent struct {
|
type ScreenSizeEvent struct {
|
||||||
Width int
|
Width int
|
||||||
Height int
|
Height int
|
||||||
Scale int
|
|
||||||
ActualScale int
|
ActualScale int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,6 @@ func (u *userInterface) Update() (interface{}, error) {
|
|||||||
screenSizeEvent = &ScreenSizeEvent{
|
screenSizeEvent = &ScreenSizeEvent{
|
||||||
Width: u.width,
|
Width: u.width,
|
||||||
Height: u.height,
|
Height: u.height,
|
||||||
Scale: u.scale,
|
|
||||||
ActualScale: u.actualScreenScale(),
|
ActualScale: u.actualScreenScale(),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -87,7 +87,6 @@ func (u *userInterface) Update() (interface{}, error) {
|
|||||||
e := ScreenSizeEvent{
|
e := ScreenSizeEvent{
|
||||||
Width: w,
|
Width: w,
|
||||||
Height: h,
|
Height: h,
|
||||||
Scale: u.ScreenScale(),
|
|
||||||
ActualScale: u.ActualScreenScale(),
|
ActualScale: u.ActualScreenScale(),
|
||||||
}
|
}
|
||||||
return e, nil
|
return e, nil
|
||||||
|
@ -118,7 +118,6 @@ func (u *userInterface) Update() (interface{}, error) {
|
|||||||
e := ScreenSizeEvent{
|
e := ScreenSizeEvent{
|
||||||
Width: u.width,
|
Width: u.width,
|
||||||
Height: u.height,
|
Height: u.height,
|
||||||
Scale: u.scale,
|
|
||||||
ActualScale: u.actualScreenScale(),
|
ActualScale: u.actualScreenScale(),
|
||||||
}
|
}
|
||||||
return e, nil
|
return e, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user