pygame.DOUBLEBUF | pygame.HWSURFACE

This commit is contained in:
cuu 2020-01-13 15:26:24 +08:00
parent 712ce14fc5
commit e15cf60412
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class Page(Widget):
_FootMsg = ["Nav", "", "", "", "Enter"] # Default Page Foot info
_Wallpaper = None
_SelectedIconTopOffset = 20
_EasingDur = 30
_EasingDur = 20/config.GlobalScale
_Padding = pygame.Rect(0, 0, 0, 0) # x,y,w,h
_Margin = pygame.Rect(0, 0, 0, 0)
_ScrollStep = 1

View File

@ -640,7 +640,7 @@ if __name__ == '__main__':
os.chdir( os.path.dirname(os.path.realpath(__file__)) )
SCREEN_SIZE = (Width*config.GlobalScale,Height*config.GlobalScale)
screen = pygame.display.set_mode(SCREEN_SIZE, 0, 32)
screen = pygame.display.set_mode(SCREEN_SIZE,pygame.DOUBLEBUF | pygame.HWSURFACE, 32)
pygame.event.set_allowed(None)
pygame.event.set_allowed([pygame.KEYDOWN,pygame.KEYUP,RUNEVT,RUNSYS,POWEROPT,RESTARTUI,RUNSH])