forked from ndyer/pygame-dvd
fixing some formatting and adding a comment
This commit is contained in:
parent
2957bb867f
commit
b96954c5c1
@ -8,12 +8,19 @@ VALID_SURFACES = [
|
||||
'steam_screen'
|
||||
]
|
||||
|
||||
|
||||
def get_screen_resolution():
|
||||
"""
|
||||
Gets the current resolution using xrandr
|
||||
Returns:
|
||||
tuple: The current resolution as a tuple.
|
||||
"""
|
||||
command_output = subprocess.check_output(['xrandr']).decode('utf-8')
|
||||
for line in command_output.split('\n'):
|
||||
if '*' in line:
|
||||
return tuple(map(int, line.split()[0].split('x')))
|
||||
|
||||
|
||||
def main(windowed_mode=False):
|
||||
"""
|
||||
Main scene manager to display the scenes of the application
|
||||
|
@ -6,6 +6,7 @@ SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
SCALE_RATIO = (0.325 / 800.0)
|
||||
SPEED_RATIO = (2.5 / 800.0)
|
||||
|
||||
|
||||
class SteamLogo(pygame.sprite.Sprite):
|
||||
"""
|
||||
A Pygame sprite representing a Steam logo that moves around the screen.
|
||||
|
Loading…
Reference in New Issue
Block a user