Simplify ctx initializer

This commit is contained in:
Stacy Harper
2021-08-25 22:06:51 +02:00
committed by John Sullivan
parent 283a758910
commit b65ea995f1
3 changed files with 5 additions and 16 deletions

12
drw.c
View File

@@ -5,18 +5,6 @@
#include "drw.h"
#include "shm_open.h"
void
drw_init(struct drw *d, const char *fc_pattern, void *shm) {
d->shm = shm;
d->font_description = pango_font_description_from_string(fc_pattern);
}
void
drwsurf_init(struct drw *d, struct drwsurf *ds, struct wl_surface *surf) {
ds->ctx = d;
ds->surf = surf;
}
void
drwsurf_resize(struct drwsurf *ds, uint32_t w, uint32_t h, uint32_t s) {
if (ds->buf) {