aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/dwm/util.c
blob: 1875d897c1d002bfeb5451f258051761f0817300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
}