Skip to content
Snippets Groups Projects
Commit 797a686e authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

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

parent 30c971ce
No related branches found
No related tags found
No related merge requests found
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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment