From db9519ac3c420373caa012d3a6dea24987e87f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Mon, 12 Jan 1998 10:00:27 +0100 Subject: [PATCH] Added a PutImage_req function. Rev: lib/modules/Protocols.pmod/X.pmod/Types.pmod:1.16 --- lib/modules/Protocols.pmod/X.pmod/Types.pmod | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/modules/Protocols.pmod/X.pmod/Types.pmod b/lib/modules/Protocols.pmod/X.pmod/Types.pmod index 86e45de6c0..8b6aec69c9 100644 --- a/lib/modules/Protocols.pmod/X.pmod/Types.pmod +++ b/lib/modules/Protocols.pmod/X.pmod/Types.pmod @@ -207,8 +207,8 @@ class Drawable display->send_request(DrawLine_req(gc->id, coordMode, points)); } - void PutImage(object gc, int depth, - int tx, int ty, int width, int height, string data) + object PutImage_req(object gc, int depth, + int tx, int ty, int width, int height, string data) { object r = Requests.PutImage(); r->drawable = id; @@ -219,7 +219,14 @@ class Drawable r->width = width; r->height = height; r->data = data; - display->send_request(r); + + return r; + } + + void PutImage(object gc, int depth, + int tx, int ty, int width, int height, string data) + { + display->send_request(PutImage_req(gc, depth, tx,tx,width, height, data)); } } -- GitLab