From c9e6ccd2646e43e9c2c4331823b750c21be52013 Mon Sep 17 00:00:00 2001 From: sidorares Date: Wed, 20 Jul 2011 12:33:19 +1000 Subject: [PATCH] keep templates in order of opcode --- lib/x11/corereqs.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/x11/corereqs.js b/lib/x11/corereqs.js index a7b0ffc..f855dd0 100644 --- a/lib/x11/corereqs.js +++ b/lib/x11/corereqs.js @@ -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) {