mirror of
https://github.com/danbulant/node-x11
synced 2026-05-27 22:12:15 +00:00
PolyFillArc request
This commit is contained in:
parent
6c9cb536e6
commit
d2707f8d38
1 changed files with 14 additions and 0 deletions
|
|
@ -512,6 +512,20 @@ module.exports = {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
PolyFillArc: [
|
||||||
|
function(drawable, gc, coords) { // x1, y1, w1, h1, a11, a12, ...
|
||||||
|
var format = 'CxSLL';
|
||||||
|
var numrects4bytes = coords.length/2;
|
||||||
|
var args = [71, 3+numrects4bytes, drawable, gc];
|
||||||
|
for (var i=0; i < coords.length; ++i)
|
||||||
|
{
|
||||||
|
format += 'S';
|
||||||
|
args.push(coords[i]);
|
||||||
|
}
|
||||||
|
return [format, args];
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
PutImage: [
|
PutImage: [
|
||||||
// format: 0 - Bitmap, 1 - XYPixmap, 2 - ZPixmap
|
// format: 0 - Bitmap, 1 - XYPixmap, 2 - ZPixmap
|
||||||
function(format, drawable, gc, width, height, dstX, dstY, leftPad, depth, data) {
|
function(format, drawable, gc, width, height, dstX, dstY, leftPad, depth, data) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue