Rimuovi l'impostazione del driver video SDL nell'inizializzazione della finestra di gioco
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ from PIL import Image
|
|||||||
|
|
||||||
class GameWindow:
|
class GameWindow:
|
||||||
def __init__(self, width, height, cell_size, title="Default", key_callback=None):
|
def __init__(self, width, height, cell_size, title="Default", key_callback=None):
|
||||||
os.environ["SDL_VIDEODRIVER"] = "x11"
|
|
||||||
self.cell_size = cell_size
|
self.cell_size = cell_size
|
||||||
self.width = width * cell_size
|
self.width = width * cell_size
|
||||||
self.height = height * cell_size
|
self.height = height * cell_size
|
||||||
|
|||||||
Reference in New Issue
Block a user