Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
multitouch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
multitouch
Commits
797a686e
Commit
797a686e
authored
Jun 08, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
screen.py now uses GTK to determine screen size instead of pygame.
parent
30c971ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/screen.py
src/screen.py
+2
-6
No files found.
src/screen.py
View file @
797a686e
import
pygame.display
from
gtk.gdk
import
Screen
# get screen resolution
_w
,
_h
=
screen_size
=
Screen
().
get_root_window
().
get_size
()
pygame
.
display
.
init
()
_info
=
pygame
.
display
.
Info
()
_w
,
_h
=
screen_size
=
_info
.
current_w
,
_info
.
current_h
pygame
.
display
.
quit
()
def
pixel_coords
(
x
,
y
):
def
pixel_coords
(
x
,
y
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment