Skip to content

Commit

Permalink
Merge pull request #89 from Arteris/add_freepicture
Browse files Browse the repository at this point in the history
Add FreePicture to XRender
  • Loading branch information
sidorares committed Apr 20, 2015
2 parents 76f1483 + dc90e27 commit e7d9ba7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ext/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ exports.requireExt = function(display, callback)
X.pack_stream.flush();
}

ext.FreePicture = function(pid) {
X.seq_num++;
X.pack_stream.pack('CCSL', [ext.majorOpcode, 7, 2, pid]);
X.pack_stream.flush();
}

function floatToFix(f)
{
return parseInt(f*65536);
Expand Down

0 comments on commit e7d9ba7

Please sign in to comment.