mirror of
https://github.com/danbulant/node-x11
synced 2026-06-16 13:11:11 +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: [
|
||||
function(coordMode, drawable, gc, points)
|
||||
{
|
||||
|
|
@ -248,6 +234,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: [
|
||||
function(drawable, gc, x, y, items) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue