From c624d4297735713571c990c2e0b93d47fd8fb411 Mon Sep 17 00:00:00 2001 From: cuu Date: Fri, 7 Dec 2018 00:07:06 +0800 Subject: [PATCH] countrscreen bug fix --- sysgo/UI/counter_screen.go | 5 ++++- sysgo/UI/fullscreen.go | 2 ++ sysgo/config.go | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sysgo/UI/counter_screen.go b/sysgo/UI/counter_screen.go index 9c97d3f..f410138 100644 --- a/sysgo/UI/counter_screen.go +++ b/sysgo/UI/counter_screen.go @@ -39,6 +39,9 @@ type CounterScreen struct { func NewCounterScreen() *CounterScreen { p := &CounterScreen{} + p.Width = Width + p.Height = Height + p.Number = 10 p.CounterFont = Fonts["varela120"] p.TextFont1 = Fonts["varela15"] @@ -148,7 +151,7 @@ func (self *CounterScreen) Init() { } func (self *CounterScreen) Draw() { - surface.Fill(self.CanvasHWND, self.FGColor) + surface.Fill(self.CanvasHWND, self.BGColor) self.TopLabel.NewCoord(Width/2,15) self.TopLabel.DrawCenter(false) diff --git a/sysgo/UI/fullscreen.go b/sysgo/UI/fullscreen.go index bdc1c02..78c02f1 100644 --- a/sysgo/UI/fullscreen.go +++ b/sysgo/UI/fullscreen.go @@ -18,6 +18,8 @@ type FullScreen struct { func NewFullScreen() *FullScreen { p := &FullScreen{} + p.Width = Width + p.Height = Height return p diff --git a/sysgo/config.go b/sysgo/config.go index 23fb206..78b692c 100644 --- a/sysgo/config.go +++ b/sysgo/config.go @@ -22,7 +22,7 @@ var ( SKIN="default" //load from dot files - CurPowerLevel= "performance" + CurPowerLevel= "supersaving"//"performance" Lang = "English" )