mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-06 13:34:36 +02:00
big update, add goroutine sdl render
replace a lot of self.Screen.Draw() to self.Screen.Refresh()
This commit is contained in:
@@ -815,16 +815,14 @@ func (self *Page) KeyDown(ev *event.Event) {
|
||||
|
||||
if self.FootMsg[3] == "Back" {
|
||||
self.ReturnToUpLevelPage()
|
||||
self.Screen.Draw()
|
||||
self.Screen.SwapAndShow()
|
||||
self.Screen.Refresh()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if ev.Data["Key"] == CurKeys["Menu"] {
|
||||
self.ReturnToUpLevelPage()
|
||||
self.Screen.Draw()
|
||||
self.Screen.SwapAndShow()
|
||||
self.Screen.Refresh()
|
||||
}
|
||||
|
||||
if ev.Data["Key"] == CurKeys["Right"] {
|
||||
@@ -836,8 +834,7 @@ func (self *Page) KeyDown(ev *event.Event) {
|
||||
}
|
||||
|
||||
self.PsIndex = self.IconIndex
|
||||
self.Screen.Draw()
|
||||
self.Screen.SwapAndShow()
|
||||
self.Screen.Refresh()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -849,15 +846,13 @@ func (self *Page) KeyDown(ev *event.Event) {
|
||||
self.IconsEasingRight(IconWidth + self.PageIconMargin)
|
||||
}
|
||||
self.PsIndex = self.IconIndex
|
||||
self.Screen.Draw()
|
||||
self.Screen.SwapAndShow()
|
||||
self.Screen.Refresh()
|
||||
}
|
||||
}
|
||||
|
||||
if ev.Data["Key"] == CurKeys["Enter"] {
|
||||
self.IconClick()
|
||||
self.Screen.Draw()
|
||||
self.Screen.SwapAndShow()
|
||||
self.Screen.Refresh()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user