diff options
Diffstat (limited to 'sys/cmd/dwm/util.c')
-rw-r--r-- | sys/cmd/dwm/util.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/cmd/dwm/util.c b/sys/cmd/dwm/util.c new file mode 100644 index 0000000..1875d89 --- /dev/null +++ b/sys/cmd/dwm/util.c @@ -0,0 +1,22 @@ +#include "dwm.h" + +void +fatal(byte *fmt, ...) +{ + va_list args; + va_start(args, fmt); + + verrorf(fmt, args); + + va_end(args); + exit(1); +} + +void +scale(struct wlr_box *box, float by) +{ + box->x *= by; + box->y *= by; + box->height *= by; + box->width *= by; +} |