Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/pvcraven/arcade into…
Browse files Browse the repository at this point in the history
… development
  • Loading branch information
einarf committed Jun 22, 2020
2 parents 877dafc + 9ad29e7 commit 169cec6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# virualenvs
env
venv/
venv*/
.venv

# docs
Expand Down
2 changes: 1 addition & 1 deletion arcade/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def set_fullscreen(self, fullscreen=True, screen=None, mode=None,
:param int width:
:param int height:
"""
super.set_fullscreen(fullscreen, screen, mode, width, height)
super().set_fullscreen(fullscreen, screen, mode, width, height)

def center_window(self):
"""
Expand Down
31 changes: 31 additions & 0 deletions tests/unit2/test_fullscreen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import os
import arcade

SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
LINE_HEIGHT = 20
CHARACTER_SCALING = 0.5


class MyTestWindow(arcade.Window):

def __init__(self, width, height, title):
super().__init__(width, height, title)

arcade.set_background_color(arcade.color.AMAZON)

def on_draw(self):
pass

def update(self, delta_time):
pass


def test_sprite():
window = MyTestWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Test Text")
window.center_window()
window.set_fullscreen(True, width=1920, height=1080)
window.test(10)
window.set_fullscreen(False)
window.test(10)
window.close()

0 comments on commit 169cec6

Please sign in to comment.