diff options
author | rodri <rgl@antares-labs.eu> | 2023-02-25 10:21:02 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-02-25 10:21:02 +0000 |
commit | 8975899ac8a3589d0d42f96dc4b7aa6ced8ee720 (patch) | |
tree | 23148443d5c45a36554ebe65dda0efc2cd0bc02a /alloc.c | |
parent | 0f75049222798e1bfee7c5bff80bee6a0b7fdd2c (diff) | |
download | musw-8975899ac8a3589d0d42f96dc4b7aa6ced8ee720.tar.gz musw-8975899ac8a3589d0d42f96dc4b7aa6ced8ee720.tar.bz2 musw-8975899ac8a3589d0d42f96dc4b7aa6ced8ee720.zip |
implemented optional ghosting for the clients.
Diffstat (limited to 'alloc.c')
-rw-r--r-- | alloc.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -32,13 +32,13 @@ erealloc(void *p, ulong n) return np; } -//Image* -//eallocimage(Display *d, Rectangle r, ulong chan, int repl, ulong col) -//{ -// Image *i; -// -// i = allocimage(d, r, chan, repl, col); -// if(i == nil) -// sysfatal("allocimage: %r"); -// return i; -//} +Image* +eallocimage(Display *d, Rectangle r, ulong chan, int repl, ulong col) +{ + Image *i; + + i = allocimage(d, r, chan, repl, col); + if(i == nil) + sysfatal("allocimage: %r"); + return i; +} |