diff options
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 6a9b857..1a6436e 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -85,7 +85,7 @@ buffer_new(struct client *c, const DFBSurfaceDescription *desc, unsigned int fla struct view *v; if (c->num_buffers >= c->max_buffers) - return NULL; /* NITPICKER_ERR_OUT_OF_BUFS */ + return NULL; /* create DirectFB surface */ if (dfb->CreateSurface(dfb, desc, &surf) != DFB_OK) @@ -99,7 +99,6 @@ buffer_new(struct client *c, const DFBSurfaceDescription *desc, unsigned int fla TAILQ_INIT(&b->views); b->id = c->num_buffers; b->client = c; - b->state = STATE_ALLOCATED; b->flags = flags; memcpy(&b->desc, desc, sizeof(DFBSurfaceDescription)); b->bsurface = surf; |