mirror of
https://github.com/danbulant/node-x11
synced 2026-06-24 17:21:47 +00:00
keep templates in order of opcode
This commit is contained in:
parent
c792439cc8
commit
c9e6ccd264
1 changed files with 14 additions and 14 deletions
|
|
@ -205,20 +205,6 @@ module.exports = {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
PolyFillRectangle: [
|
|
||||||
function(drawable, gc, coords) { // x1, y1, w1, h1, x2, y2, w2, h2...
|
|
||||||
var format = 'CxSLL';
|
|
||||||
var numrects4bytes = coords.length/2;
|
|
||||||
var args = [70, 3+numrects4bytes, drawable, gc];
|
|
||||||
for (var i=0; i < coords.length; ++i)
|
|
||||||
{
|
|
||||||
format += 'S';
|
|
||||||
args.push(coords[i]);
|
|
||||||
}
|
|
||||||
return [format, args];
|
|
||||||
}
|
|
||||||
],
|
|
||||||
|
|
||||||
PolyPoint: [
|
PolyPoint: [
|
||||||
function(coordMode, drawable, gc, points)
|
function(coordMode, drawable, gc, points)
|
||||||
{
|
{
|
||||||
|
|
@ -249,6 +235,20 @@ module.exports = {
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
|
PolyFillRectangle: [
|
||||||
|
function(drawable, gc, coords) { // x1, y1, w1, h1, x2, y2, w2, h2...
|
||||||
|
var format = 'CxSLL';
|
||||||
|
var numrects4bytes = coords.length/2;
|
||||||
|
var args = [70, 3+numrects4bytes, drawable, gc];
|
||||||
|
for (var i=0; i < coords.length; ++i)
|
||||||
|
{
|
||||||
|
format += 'S';
|
||||||
|
args.push(coords[i]);
|
||||||
|
}
|
||||||
|
return [format, args];
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
PolyText8: [
|
PolyText8: [
|
||||||
function(drawable, gc, x, y, items) {
|
function(drawable, gc, x, y, items) {
|
||||||
var format = 'CxSLLSS';
|
var format = 'CxSLLSS';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue