diff options
Diffstat (limited to 'agbx/source/gfx/setpx.c')
-rw-r--r-- | agbx/source/gfx/setpx.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/agbx/source/gfx/setpx.c b/agbx/source/gfx/setpx.c index 322784e..c82c980 100644 --- a/agbx/source/gfx/setpx.c +++ b/agbx/source/gfx/setpx.c @@ -4,16 +4,16 @@ If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#include <agbx/priv.h> +#include <ax/priv.h> -#include <agbx/gfx.h> +#include <ax/gfx.h> -void agbx_setpx1(agbx_i20 const _vaddr,agbx_i10 const _px,agbx_i8 const _col) { +void ax_setpx1(ax_i20 const _vaddr,ax_i10 const _px,ax_i8 const _col) { /* We can only write halfwords to VRAM, so we need to load the adjacent pixel value and combine it into a halfword. */ bool const odd = _px & 0x1u; - agbx_i20 addr = _vaddr + _px - odd; - agbx_i10 precol = __agbx_get10(addr); - agbx_i10 col = _col; + ax_i20 addr = _vaddr + _px - odd; + ax_i10 precol = __ax_get10(addr); + ax_i10 col = _col; if (odd) { precol &= 0b11111111u; col <<= 0x8u; @@ -21,11 +21,11 @@ void agbx_setpx1(agbx_i20 const _vaddr,agbx_i10 const _px,agbx_i8 const _col) { else { precol &= 0b1111111100000000u; } - agbx_i10 const newcol = precol | col; - __agbx_set10(addr,newcol); + ax_i10 const newcol = precol | col; + __ax_set10(addr,newcol); } -void agbx_setpx2(agbx_i20 const _vaddr,agbx_i10 const _px,agbx_i10 const _col) { - agbx_i20 const addr = _vaddr + _px; - __agbx_set10(addr,_col); +void ax_setpx2(ax_i20 const _vaddr,ax_i10 const _px,ax_i10 const _col) { + ax_i20 const addr = _vaddr + _px; + __ax_set10(addr,_col); } |