Skip to content

Commit

Permalink
Add FreePicture to XRender
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Scott committed Apr 20, 2015
1 parent 76f1483 commit dc90e27
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 dc90e27

Please sign in to comment.