bcm: fix software cursor avoidance for loadimage() case (thanks bitmapper)
This commit is contained in:
parent
ff44b92c96
commit
82d04a4e63
1 changed files with 7 additions and 7 deletions
|
@ -88,18 +88,18 @@ hwdraw(Memdrawparam *par)
|
|||
{
|
||||
Memimage *dst, *src, *mask;
|
||||
|
||||
if((dst=par->dst) == nil || dst->data == nil)
|
||||
return 0;
|
||||
if((src=par->src) == nil || src->data == nil)
|
||||
return 0;
|
||||
if((mask=par->mask) == nil || mask->data == nil)
|
||||
if((dst = par->dst) == nil || dst->data == nil)
|
||||
return 0;
|
||||
if((src = par->src) && src->data == nil)
|
||||
src = nil;
|
||||
if((mask = par->mask) && mask->data == nil)
|
||||
mask = nil;
|
||||
|
||||
if(dst->data->bdata == xgdata.bdata)
|
||||
swcursoravoid(par->r);
|
||||
if(src->data->bdata == xgdata.bdata)
|
||||
if(src && src->data->bdata == xgdata.bdata)
|
||||
swcursoravoid(par->sr);
|
||||
if(mask->data->bdata == xgdata.bdata)
|
||||
if(mask && mask->data->bdata == xgdata.bdata)
|
||||
swcursoravoid(par->mr);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue