Skip to content
Snippets Groups Projects
Commit db9519ac authored by Niels Möller's avatar Niels Möller
Browse files

Added a PutImage_req function.

Rev: lib/modules/Protocols.pmod/X.pmod/Types.pmod:1.16
parent 0097d91b
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ class Drawable ...@@ -207,7 +207,7 @@ class Drawable
display->send_request(DrawLine_req(gc->id, coordMode, points)); display->send_request(DrawLine_req(gc->id, coordMode, points));
} }
void PutImage(object gc, int depth, object PutImage_req(object gc, int depth,
int tx, int ty, int width, int height, string data) int tx, int ty, int width, int height, string data)
{ {
object r = Requests.PutImage(); object r = Requests.PutImage();
...@@ -219,7 +219,14 @@ class Drawable ...@@ -219,7 +219,14 @@ class Drawable
r->width = width; r->width = width;
r->height = height; r->height = height;
r->data = data; 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));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment