Changed renderingsize to 1280x720 for 16:9 monitors
This commit is contained in:
6
test.py
6
test.py
@@ -13,8 +13,8 @@ pygame.init()
|
||||
pygame.display.set_caption("TESTFENSTER")
|
||||
pygame.mouse.set_visible(True)
|
||||
|
||||
RENDERING_SIZE = (1024,768)
|
||||
WINDOWED_DEF_SIZE = (1024,768)
|
||||
RENDERING_SIZE = (1280,720)
|
||||
WINDOWED_DEF_SIZE = (1280,720)
|
||||
#pygame.key.set_repeat(1, 30)
|
||||
window = pygame.display.set_mode((RENDERING_SIZE))
|
||||
screen = pygame.Surface(RENDERING_SIZE)
|
||||
@@ -229,7 +229,7 @@ while(gamestate):
|
||||
screen.blit(hash_label, (25, screen.get_size()[1] -25))
|
||||
|
||||
#Scales the mainsurface
|
||||
scaled_win = pygame.transform.smoothscale(screen, window.get_size())
|
||||
scaled_win = pygame.transform.scale(screen, window.get_size())
|
||||
#Blits the mainsurface to the mainwindow
|
||||
window.blit(scaled_win, (0, 0))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user