Revert "fix"

This reverts commit ed2454ea64.
This commit is contained in:
cuu
2023-01-24 14:47:42 +08:00
parent 4eefd21a8b
commit 6a360f5101
29 changed files with 104 additions and 80 deletions

View File

@@ -281,6 +281,7 @@ func (self *MainScreen) SwapAndShow() {
surface.Blit(self.HWND, self.CanvasHWND, &rect_, nil)
}
display.Flip()
}
@@ -427,7 +428,8 @@ func (self *MainScreen) ShowMsg(content string, blocktime int) {
if blocktime > 0 {
time.BlockDelay(blocktime)
self.Refresh()
self.CurrentPage.Draw()
self.SwapAndShow()
}
}