summaryrefslogtreecommitdiff
path: root/agbx/include-private
diff options
context:
space:
mode:
Diffstat (limited to 'agbx/include-private')
-rw-r--r--agbx/include-private/agbx/priv.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/agbx/include-private/agbx/priv.h b/agbx/include-private/agbx/priv.h
index 867ec07..3f55813 100644
--- a/agbx/include-private/agbx/priv.h
+++ b/agbx/include-private/agbx/priv.h
@@ -36,13 +36,8 @@
); \
}
-#define __agbx_setpx1(_px,_col) { \
- agbx_i20 const addr = 0x6000000u + _px; \
- __agbx_set8(addr,_col); \
-}
-
-#define __agbx_setpx2(_px,_col) { \
- agbx_i20 const addr = 0x6000000u + _px * 0x2u; /* We multiply it by two as each pixel takes up two bytes. */ \
+#define __agbx_setpx2(_vaddr,_px,_col) { \
+ agbx_i20 const addr = _vaddr + _px * 0x2u; /* We multiply it by two as each pixel takes up two bytes. */ \
__agbx_set10(addr,_col); \
}