mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-08-29 23:32:01 +02:00
Simplify ctx initializer
This commit is contained in:
committed by
John Sullivan
parent
283a758910
commit
b65ea995f1
12
drw.c
12
drw.c
@@ -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) {
|
||||
|
Reference in New Issue
Block a user