Commit 797a686e authored by Taddeüs Kroes's avatar Taddeüs Kroes

screen.py now uses GTK to determine screen size instead of pygame.

parent 30c971ce
import pygame.display
from gtk.gdk import Screen
# get screen resolution
pygame.display.init()
_info = pygame.display.Info()
_w, _h = screen_size = _info.current_w, _info.current_h
pygame.display.quit()
_w, _h = screen_size = Screen().get_root_window().get_size()
def pixel_coords(x, y):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment