From 48d827bb16e57a06c951c08bcf98ca1c088da9eb Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Thu, 17 Aug 2023 04:27:28 +0300 Subject: WinIcon Patch Changes to be committed: modified: config.def.h modified: config.def.h.orig modified: config.h modified: config.mk new file: config.mk.orig modified: drw.c modified: drw.c.orig modified: drw.h new file: drw.h.orig modified: dwm.c modified: dwm.c.orig modified: patches_huge/dwm-winicon-6.3-v2.1.diff --- drw.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drw.h') diff --git a/drw.h b/drw.h index 6471431..e42eead 100644 --- a/drw.h +++ b/drw.h @@ -21,6 +21,7 @@ typedef struct { int screen; Window root; Drawable drawable; + Picture picture; GC gc; Clr *scheme; Fnt *fonts; @@ -50,9 +51,12 @@ void drw_cur_free(Drw *drw, Cur *cursor); void drw_setfontset(Drw *drw, Fnt *set); void drw_setscheme(Drw *drw, Clr *scm); +Picture drw_picture_create_resized(Drw *drw, char *src, unsigned int src_w, unsigned int src_h, unsigned int dst_w, unsigned int dst_h); + /* Drawing functions */ void drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert); int drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert); +void drw_pic(Drw *drw, int x, int y, unsigned int w, unsigned int h, Picture pic); /* Map functions */ void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h); -- cgit v1.2.3