diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-10-01 21:38:19 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-10-01 21:38:19 +0800 |
commit | 6736d6764ba2541eeaa48b45b002acadb20b9b05 (patch) | |
tree | 61a6814db04e2550379e1fbbfd5e4a419c682af9 /csrc/mkf/graph_struct.h | |
parent | 63d7007905047e5f488e179a56d861dfaa17aa90 (diff) | |
download | rich4-6736d6764ba2541eeaa48b45b002acadb20b9b05.tar.xz |
mkf uses graph_st
Diffstat (limited to 'csrc/mkf/graph_struct.h')
-rw-r--r-- | csrc/mkf/graph_struct.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/csrc/mkf/graph_struct.h b/csrc/mkf/graph_struct.h new file mode 100644 index 0000000..4859508 --- /dev/null +++ b/csrc/mkf/graph_struct.h @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2018 Iru Cai <mytbk920423@gmail.com> + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include <stdint.h> + +struct graph_st +{ + int16_t width; + int16_t height; + int16_t x; + int16_t y; + int16_t * gdata; + int16_t data[0]; +}; + +struct graph_st * allocate_graph_st(int w, int h, int x, int y); +struct graph_st * crop_graph(struct graph_st *a1, struct graph_st *a2, int x, int y, int w, int h); |