summaryrefslogtreecommitdiff
path: root/display
diff options
context:
space:
mode:
authorDiego Roversi <diegor@tiscali.it>2019-09-20 11:24:37 +0200
committerDiego Roversi <diegor@tiscali.it>2019-09-20 11:24:37 +0200
commit4f178917c2a1bf78a612454fd830b87d78dd1772 (patch)
tree98eea238e8345a0ed797be0a52d8048644b8d306 /display
parent038cf998c1aecd855e4b881d8159be64e0000773 (diff)
fix local import
Diffstat (limited to 'display')
-rw-r--r--display/dpy_pygame.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/display/dpy_pygame.py b/display/dpy_pygame.py
index 30d7359..498b5dc 100644
--- a/display/dpy_pygame.py
+++ b/display/dpy_pygame.py
@@ -3,11 +3,12 @@
## pygame-based implementation of xshm ##
################################################
-import os
+import os, sys
import pygame
from pygame.locals import *
-from .modes import KeyPressed, KeyReleased
+from display.modes import KeyPressed, KeyReleased
+# print("dpy_pygame", file=sys.stderr )
class Display:
musthidemouse = 0
@@ -70,6 +71,7 @@ class Display:
del self.events_mouse[:-8]
def pixmap(self, w, h, data, colorkey=-1):
+ print(f"pixmap type(data) = {type(data)}, data={data[:128]}", file=sys.stderr)
img = pygame.image.fromstring(data, (w, h), "RGB")
if colorkey >= 0:
r = colorkey & 0xFF