diff options
Diffstat (limited to 'agbx/source/gfx/plot.c')
-rw-r--r-- | agbx/source/gfx/plot.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/agbx/source/gfx/plot.c b/agbx/source/gfx/plot.c index e23834c..a19a2f1 100644 --- a/agbx/source/gfx/plot.c +++ b/agbx/source/gfx/plot.c @@ -8,20 +8,17 @@ #include <agbx/gfx.h> -agbx_i10 agbx_plot3(agbx_i8 const _x,agbx_i8 const _y,agbx_i10 const _col) { +void agbx_plot3(agbx_i8 const _x,agbx_i8 const _y,agbx_i10 const _col) { agbx_i10 const px = _y * 0xF0u + _x; __agbx_setpx2(0x600'0000u,px,_col) - return px; } -agbx_i10 agbx_plot4(agbx_i20 const _vaddr,agbx_i8 const _x,agbx_i8 const _y,agbx_i8 const _col) { +void agbx_plot4(agbx_i20 const _vaddr,agbx_i8 const _x,agbx_i8 const _y,agbx_i8 const _col) { agbx_i10 const px = _y * 0xF0u + _x; agbx_setpx1(_vaddr,px,_col); - return px; } -agbx_i10 agbx_plot5(agbx_i20 const _vaddr,agbx_i8 const _x,agbx_i8 const _y,agbx_i10 const _col) { - agbx_i10 const px = _y * 0xF0u + _x; +void agbx_plot5(agbx_i20 const _vaddr,agbx_i8 const _x,agbx_i8 const _y,agbx_i10 const _col) { + agbx_i10 const px = _y * 0xA0u + _x; __agbx_setpx2(_vaddr,px,_col) - return px; } |