mirror of
https://github.com/danbulant/node-x11
synced 2026-07-03 02:00:44 +00:00
Merge pull request #89 from Arteris/add_freepicture
Add FreePicture to XRender
This commit is contained in:
commit
e7d9ba7cb4
1 changed files with 6 additions and 0 deletions
|
|
@ -151,6 +151,12 @@ exports.requireExt = function(display, callback)
|
||||||
X.pack_stream.flush();
|
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)
|
function floatToFix(f)
|
||||||
{
|
{
|
||||||
return parseInt(f*65536);
|
return parseInt(f*65536);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue