21 lines
No EOL
505 B
Python
21 lines
No EOL
505 B
Python
import pyglet
|
|
from . import config
|
|
|
|
def auto_res(res) -> list:
|
|
return res
|
|
|
|
def init_window() -> None:
|
|
res = [config.init.get('width'), config.init.get('height')]
|
|
fs = config.init.get('fullscreen')
|
|
borderless = config.init.get('borderless')
|
|
scaling = config.init.get('scaling')
|
|
|
|
if fs and not borderless:
|
|
# real fullscreen mode is requested
|
|
# that means we need to carefully select
|
|
# an available resolution
|
|
pass
|
|
|
|
|
|
|
|
pyglet.window.Window() |