summaryrefslogtreecommitdiff
path: root/display/dpy_pygame.py
diff options
context:
space:
mode:
Diffstat (limited to 'display/dpy_pygame.py')
-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