blob: fe751793c37fe9de24af8621044a9601dfbabd41 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <agbx-demo.h>
#include <agbx/key.h>
#include <agbx/gfx.h>
agbx_err agbx_main(void) {
agbxd_dat dat;
agbxd_initdat(&dat);
agbxd_initgfx();
bool const err = agbxd_loop(&dat);
if (err) {
for (agbx_i10 px = 0x0u;px != 0x9600u;++px) {
agbx_setpx1(dat.vaddr,px,dat.col);
agbxd_chgcol(&dat,0x1u);
}
}
return err ? agbx_err_max : agbx_err_ok;
}
|