update drwl

This commit is contained in:
sewn 2024-08-04 23:17:42 +03:00
parent 7a07b728c4
commit 02c3ac09a6
No known key found for this signature in database
4 changed files with 38 additions and 77 deletions

5
mew.c
View file

@ -272,10 +272,11 @@ drawmenu(void)
{
unsigned int curpos;
struct item *item;
int x = 0, y = 0, w;
int x = 0, y = 0, w, stride;
PoolBuf *buf;
if (!(buf = poolbuf_create(shm, mw, mh, 0)))
stride = drwl_stride(mw);
if (!(buf = poolbuf_create(shm, mw, mh, stride, 0)))
die("poolbuf_create:");
drwl_prepare_drawing(drw, mw, mh, buf->data, buf->stride);