#!/usr/bin/env python3 """Simple viewport test""" import mcrfpy from mcrfpy import Window import sys print("Testing viewport system...") # Get window singleton window = Window.get() print(f"Game resolution: {window.game_resolution}") print(f"Scaling mode: {window.scaling_mode}") print(f"Window resolution: {window.resolution}") # Test changing scaling mode window.scaling_mode = "center" print(f"Changed to center mode: {window.scaling_mode}") window.scaling_mode = "stretch" print(f"Changed to stretch mode: {window.scaling_mode}") window.scaling_mode = "fit" print(f"Changed to fit mode: {window.scaling_mode}") # Test changing game resolution window.game_resolution = (800, 600) print(f"Changed game resolution to: {window.game_resolution}") print("Test completed!") sys.exit(0)