From b0a7e135021e91cbdf1d4da287bd596ed571a86b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 19 Jun 2016 01:12:42 +0900 Subject: [PATCH] ui: Remove ScreenSizeEvent.Scale --- internal/ui/event.go | 1 - internal/ui/ui_glfw.go | 1 - internal/ui/ui_js.go | 1 - internal/ui/ui_mobile.go | 1 - 4 files changed, 4 deletions(-) diff --git a/internal/ui/event.go b/internal/ui/event.go index 6d170cc8e..631c444a1 100644 --- a/internal/ui/event.go +++ b/internal/ui/event.go @@ -20,7 +20,6 @@ type CloseEvent struct { type ScreenSizeEvent struct { Width int Height int - Scale int ActualScale int } diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 7a13c59b5..29a37ea0e 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -194,7 +194,6 @@ func (u *userInterface) Update() (interface{}, error) { screenSizeEvent = &ScreenSizeEvent{ Width: u.width, Height: u.height, - Scale: u.scale, ActualScale: u.actualScreenScale(), } }) diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index 140b0f8d7..91ce6ef8c 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -87,7 +87,6 @@ func (u *userInterface) Update() (interface{}, error) { e := ScreenSizeEvent{ Width: w, Height: h, - Scale: u.ScreenScale(), ActualScale: u.ActualScreenScale(), } return e, nil diff --git a/internal/ui/ui_mobile.go b/internal/ui/ui_mobile.go index 378a89b72..38dd2752b 100644 --- a/internal/ui/ui_mobile.go +++ b/internal/ui/ui_mobile.go @@ -118,7 +118,6 @@ func (u *userInterface) Update() (interface{}, error) { e := ScreenSizeEvent{ Width: u.width, Height: u.height, - Scale: u.scale, ActualScale: u.actualScreenScale(), } return e, nil