keep templates in order of opcode

This commit is contained in:
sidorares 2011-07-20 12:33:19 +10:00
parent c792439cc8
commit c9e6ccd264

View file

@ -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) {