Add support for user-level 9P servers/clients and various bug fixes to go with them.
This commit is contained in:
parent
ac244f8d28
commit
32f69c36e0
60 changed files with 965 additions and 485 deletions
|
|
@ -24,11 +24,11 @@ memimagedraw(Memimage *dst, Rectangle r, Memimage *src, Point sp,
|
|||
|
||||
/* only fetch dst data if we need it */
|
||||
if((par->state&(Simplemask|Fullmask)) != (Simplemask|Fullmask))
|
||||
xgetxdata(dst, par->r);
|
||||
_xgetxdata(dst, par->r);
|
||||
|
||||
/* always fetch source and mask */
|
||||
xgetxdata(src, par->sr);
|
||||
xgetxdata(mask, par->mr);
|
||||
_xgetxdata(src, par->sr);
|
||||
_xgetxdata(mask, par->mr);
|
||||
|
||||
/* now can run memimagedraw on the in-memory bits */
|
||||
_memimagedraw(par);
|
||||
|
|
@ -37,7 +37,7 @@ memimagedraw(Memimage *dst, Rectangle r, Memimage *src, Point sp,
|
|||
return;
|
||||
|
||||
/* put bits back on x server */
|
||||
xputxdata(dst, par->r);
|
||||
_xputxdata(dst, par->r);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
@ -66,7 +66,7 @@ xdraw(Memdrawparam *par)
|
|||
*/
|
||||
m = Simplesrc|Simplemask|Fullmask;
|
||||
if((state&m) == m){
|
||||
xfillcolor(dst, r, par->sdval);
|
||||
_xfillcolor(dst, r, par->sdval);
|
||||
// xdirtyxdata(dst, r);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue