mirror of
https://github.com/0intro/conterm
synced 2024-11-29 08:53:11 +03:00
17 lines
260 B
C
17 lines
260 B
C
#include <u.h>
|
|
#include <libc.h>
|
|
#include <draw.h>
|
|
#include <memdraw.h>
|
|
#include "xmem.h"
|
|
|
|
int
|
|
cloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
|
|
{
|
|
int n;
|
|
|
|
n = _cloadmemimage(i, r, data, ndata);
|
|
if(n > 0 && i->X)
|
|
putXdata(i, r);
|
|
return n;
|
|
}
|