-
Notifications
You must be signed in to change notification settings - Fork 2
/
fbox.c
57 lines (50 loc) · 1.07 KB
/
fbox.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "dialog.h"
#include "fbox.h"
u16 fbox0_func(struct dialog *rm) {
struct dialogsub *rs = &rm->sub;
if ( !(rs->field_1 & 0x80) ) {
rs->ft_lo = 0;
rs->field_1 |= 0x80u;
}
return font_render_b(rm);
}
u16 fbox1_func(struct dialog *rm) {
struct dialogsub *rs = &rm->sub;
if ( !(rs->field_1 & 0x80) ) {
rs->ft_lo = 1;
rs->field_1 |= 0x80u;
}
return font_render_b(rm);
}
u16 fbox2_func(struct dialog *rm) {
struct dialogsub *rs = &rm->sub;
if ( !(rs->field_1 & 0x80) ) {
rs->ft_lo = 2;
rs->field_1 |= 0x80u;
}
return font_render_b(rm);
}
u16 fbox3_func(struct dialog *rm) {
struct dialogsub *rs = &rm->sub;
if ( !(rs->field_1 & 0x80) ) {
rs->ft_lo = 3;
rs->field_1 |= 0x80u;
}
return font_render_b(rm);
}
u16 fbox4_func(struct dialog *rm) {
struct dialogsub *rs = &rm->sub;
if ( !(rs->field_1 & 0x80) ) {
rs->ft_lo = 4;
rs->field_1 |= 0x80u;
}
return font_render_b(rm);
}
u16 fbox5_func(struct dialog *rm) {
struct dialogsub *rs = &rm->sub;
if ( !(rs->field_1 & 0x80) ) {
rs->ft_lo = 5;
rs->field_1 |= 0x80u;
}
return font_render_b(rm);
}