ui: Remove ScreenSizeEvent.Scale

This commit is contained in:
Hajime Hoshi 2016-06-19 01:12:42 +09:00
parent 6f50ef3604
commit b0a7e13502
4 changed files with 0 additions and 4 deletions

View File

@ -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
} }

View File

@ -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(),
} }
}) })

View File

@ -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

View File

@ -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