Skip to content
Snippets Groups Projects
Commit f34aac94 authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

16bit text.

Rev: lib/modules/Protocols.pmod/X.pmod/Requests.pmod:1.19
Rev: lib/modules/Protocols.pmod/X.pmod/Types.pmod:1.22
parent fd74249b
Branches
Tags
No related merge requests found
......@@ -707,6 +707,23 @@ class ImageText8
}
}
class ImageText16
{
inherit request;
constant reqType = 77;
int drawable;
int gc;
int x, y;
string str;
string to_string()
{
return build_request(sprintf("%4c%4c%2c%2c%s",
drawable, gc, x, y, str), sizeof(str)/2);
}
}
class CreateColormap
{
inherit request;
......
......@@ -336,6 +336,25 @@ class Drawable
object req = ImageText8_req(gc->id, x, y, str);
display->send_request(req);
}
object ImageText16_req(int gc, int x, int y, string str)
{
object req = Requests.ImageText16();
req->drawable = id;
req->gc = gc;
req->x = x;
req->y = y;
req->str = str;
return req;
}
void ImageText16(object gc, int x, int y, string str)
{
if(sizeof(str)>510)
error("ImageText16: string to long\n");
object req = ImageText16_req(gc->id, x, y, str);
display->send_request(req);
}
}
class Pixmap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment