summaryrefslogtreecommitdiff
path: root/demo/source
diff options
context:
space:
mode:
Diffstat (limited to 'demo/source')
-rw-r--r--demo/source/initgfx.c8
-rw-r--r--demo/source/main.c5
2 files changed, 7 insertions, 6 deletions
diff --git a/demo/source/initgfx.c b/demo/source/initgfx.c
index e2f75d4..31f256f 100644
--- a/demo/source/initgfx.c
+++ b/demo/source/initgfx.c
@@ -3,11 +3,11 @@
#include <ax/gfx.h>
void axd_initgfx(void) {
- ax_set10(0x500'0000u,0b0u);
+ ax_set10(0x500'0000u,0b000000000000000u);
ax_set10(0x500'0002u,0b111111111111111u);
- ax_set10(0x500'0004u,0b11111u);
- ax_set10(0x500'0006u,0b1111111111u);
- ax_set10(0x500'0008u,0b1111100000u);
+ ax_set10(0x500'0004u,0b000000000011111u);
+ ax_set10(0x500'0006u,0b00001111111111u);
+ ax_set10(0x500'0008u,0b00001111100000u);
ax_set10(0x500'000Au,0b111111111100000u);
ax_set10(0x500'000Cu,0b111110000000000u);
ax_set10(0x500'000Eu,0b111110000011111u);
diff --git a/demo/source/main.c b/demo/source/main.c
index 4c838a6..ce0a234 100644
--- a/demo/source/main.c
+++ b/demo/source/main.c
@@ -9,10 +9,11 @@ ax_err ax_main(void) {
axd_initgfx();
bool const err = axd_loop(&dat);
if (err) {
- for (ax_i10 px = 0x0u;px != 0x9600u;++px) {
+ for (ax_i01 px = 0x0u;px != 0x9600u;++px) {
ax_setpx1(dat.vaddr,px,dat.col);
axd_chgcol(&dat,0x1u);
}
+ return ax_err_max;
}
- return err ? ax_err_max : ax_err_ok;
+ return ax_err_ok;
}