blob: db0982b3ebf71708ecd21747965bb4fc8ae88d0f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <raleigh/util.h>
#include <popups/info.h>
#include <pland/pcrt.h>
namespace raleigh {
coord::coord(uint32_t x, uint32_t y)
: x(x), y(y) {}
coord::coord()
: x(0), y(0) {}
__attribute__ ((noreturn))
void show_error_and_quitf(const char *fmt, ...) {
va_list args;
va_start(args, fmt);
struct popup info;
info_popupf_v(&info, fmt, RGB(7f, 00, 00), RGB(bf, bf, bf), args);
make_modal(&info);
__pcrt_quit();
}
}
|