devdraw: silence unused variable warnings
R=rsc https://codereview.appspot.com/7304064
This commit is contained in:
parent
5154e54d8b
commit
17934beda0
1 changed files with 6 additions and 2 deletions
|
|
@ -45,9 +45,9 @@ xdraw(Memdrawparam *par)
|
||||||
u32int sdval;
|
u32int sdval;
|
||||||
uint m, state;
|
uint m, state;
|
||||||
Memimage *src, *dst, *mask;
|
Memimage *src, *dst, *mask;
|
||||||
Point dp, mp, sp;
|
Point dp, mp;
|
||||||
Rectangle r;
|
Rectangle r;
|
||||||
Xmem *xdst, *xmask, *xsrc;
|
Xmem *xdst, *xmask;
|
||||||
XGC gc;
|
XGC gc;
|
||||||
|
|
||||||
if(par->dst->X == nil)
|
if(par->dst->X == nil)
|
||||||
|
|
@ -74,11 +74,15 @@ xdraw(Memdrawparam *par)
|
||||||
* If no source alpha and an opaque mask, we can just copy
|
* If no source alpha and an opaque mask, we can just copy
|
||||||
* the source onto the destination. If the channels are the
|
* the source onto the destination. If the channels are the
|
||||||
* same and the source is not replicated, XCopyArea works.
|
* same and the source is not replicated, XCopyArea works.
|
||||||
|
*
|
||||||
* This is disabled because Ubuntu Precise seems to ship with
|
* This is disabled because Ubuntu Precise seems to ship with
|
||||||
* a buggy X server that sometimes drops the XCopyArea
|
* a buggy X server that sometimes drops the XCopyArea
|
||||||
* requests on the floor.
|
* requests on the floor.
|
||||||
m = Simplemask|Fullmask;
|
m = Simplemask|Fullmask;
|
||||||
if((state&(m|Replsrc))==m && src->chan==dst->chan && src->X){
|
if((state&(m|Replsrc))==m && src->chan==dst->chan && src->X){
|
||||||
|
Xmem *xsrc;
|
||||||
|
Point sp;
|
||||||
|
|
||||||
xdst = dst->X;
|
xdst = dst->X;
|
||||||
xsrc = src->X;
|
xsrc = src->X;
|
||||||
dp = subpt(r.min, dst->r.min);
|
dp = subpt(r.min, dst->r.min);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue