diff options
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/ml-lsetrefresh.c | 4 | ||||
-rw-r--r-- | src/libdraw/ml-unload.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libdraw/ml-lsetrefresh.c b/src/libdraw/ml-lsetrefresh.c index 17d04cb7..526bd668 100644 --- a/src/libdraw/ml-lsetrefresh.c +++ b/src/libdraw/ml-lsetrefresh.c @@ -10,13 +10,13 @@ memlsetrefresh(Memimage *i, Refreshfn fn, void *ptr) Memlayer *l; l = i->layer; - if(l->refreshfn!=nil && fn!=nil){ /* just change functions */ + if(l->refreshfn!=0 && fn!=0){ /* just change functions */ l->refreshfn = fn; l->refreshptr = ptr; return 1; } - if(l->refreshfn == nil){ /* is using backup image; just free it */ + if(l->refreshfn == 0){ /* is using backup image; just free it */ freememimage(l->save); l->save = nil; l->refreshfn = fn; diff --git a/src/libdraw/ml-unload.c b/src/libdraw/ml-unload.c index 23a8b290..b9534117 100644 --- a/src/libdraw/ml-unload.c +++ b/src/libdraw/ml-unload.c @@ -35,7 +35,7 @@ memunload(Memimage *src, Rectangle r, uchar *data, int n) * src is an obscured layer or data is unaligned */ if(dl->save && dx==0){ - if(dl->refreshfn != nil) + if(dl->refreshfn != 0) return -1; /* can't unload window if it's not Refbackup */ if(n > 0) memlhide(src, r); |