mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-15 11:20:03 +00:00
20 lines
291 B
C
20 lines
291 B
C
|
#include "x11-inc.h"
|
||
|
|
||
|
#include <u.h>
|
||
|
#include <libc.h>
|
||
|
#include <draw.h>
|
||
|
#include <memdraw.h>
|
||
|
#include "x11-memdraw.h"
|
||
|
|
||
|
int
|
||
|
cloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
|
||
|
{
|
||
|
int n;
|
||
|
|
||
|
n = _cloadmemimage(i, r, data, ndata);
|
||
|
if(n > 0 && i->X)
|
||
|
xputxdata(i, r);
|
||
|
return n;
|
||
|
}
|
||
|
|