summaryrefslogtreecommitdiff
path: root/xlib_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlib_api.c')
-rw-r--r--xlib_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlib_api.c b/xlib_api.c
index 760e80d..6d63a48 100644
--- a/xlib_api.c
+++ b/xlib_api.c
@@ -174,6 +174,8 @@ int XNextEvent(
XEvent* event_return
)
{
+ printf("event requested\n");
+ event_return->type = KeyPress;
}
Display *XOpenDisplay(
@@ -263,7 +265,7 @@ int XPutImage(
}
xenon_rect r = {src_x,src_y,width,height};
- draw_image(gc, image, r, dest_x, dest_y);
+ draw_image(gc, image, &r, dest_x, dest_y);
printf("put image ok\n");
}