Remove useless duplication

This commit is contained in:
Stacy Harper 2021-08-25 22:08:28 +02:00 committed by John Sullivan
parent b65ea995f1
commit efd00ad31b

38
drw.h
View File

@ -4,8 +4,23 @@
#include <pango/pangocairo.h>
#include <stdbool.h>
struct drw;
struct drwsurf;
struct drw {
struct wl_shm *shm;
PangoFontDescription *font_description;
};
struct drwsurf {
uint32_t width, height, scale, size;
bool dirty;
struct drw *ctx;
struct wl_surface *surf;
struct wl_buffer *buf;
struct wl_shm *shm;
unsigned char *pool_data;
cairo_t *cairo;
PangoLayout *layout;
};
struct kbd;
void drwsurf_resize(struct drwsurf *ds, uint32_t w, uint32_t h, uint32_t s);
@ -29,23 +44,4 @@ drw_draw_text(struct drwsurf *d, Color color,
uint32_t
setup_buffer(struct drwsurf *drwsurf);
struct drw {
struct wl_shm *shm;
PangoFontDescription *font_description;
};
struct drwsurf {
uint32_t width, height, scale, size;
bool dirty;
struct drw *ctx;
struct wl_surface *surf;
struct wl_buffer *buf;
struct wl_shm *shm;
unsigned char *pool_data;
cairo_t *cairo;
PangoLayout *layout;
};
#endif