Skip to content

Commit

Permalink
devdraw: silence unused variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Feb 8, 2013
1 parent 5154e54 commit 17934be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cmd/devdraw/x11-draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ xdraw(Memdrawparam *par)
u32int sdval;
uint m, state;
Memimage *src, *dst, *mask;
Point dp, mp, sp;
Point dp, mp;
Rectangle r;
Xmem *xdst, *xmask, *xsrc;
Xmem *xdst, *xmask;
XGC gc;

if(par->dst->X == nil)
Expand All @@ -74,11 +74,15 @@ xdraw(Memdrawparam *par)
* If no source alpha and an opaque mask, we can just copy
* the source onto the destination. If the channels are the
* same and the source is not replicated, XCopyArea works.
*
* This is disabled because Ubuntu Precise seems to ship with
* a buggy X server that sometimes drops the XCopyArea
* requests on the floor.
m = Simplemask|Fullmask;
if((state&(m|Replsrc))==m && src->chan==dst->chan && src->X){
Xmem *xsrc;
Point sp;
xdst = dst->X;
xsrc = src->X;
dp = subpt(r.min, dst->r.min);
Expand Down

0 comments on commit 17934be

Please sign in to comment.