From d4b5ecd3c8c69aaeba1fc8f19cd4cf4f9a4a7492 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Wed, 21 Jun 2023 23:44:59 +0000 Subject: [PATCH] vdp1/rgb: remove c++ features --- vdp1/rgb.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vdp1/rgb.cpp b/vdp1/rgb.cpp index 746a8b5..c0529b1 100644 --- a/vdp1/rgb.cpp +++ b/vdp1/rgb.cpp @@ -25,7 +25,6 @@ uint32_t character_pattern_table(const uint32_t top) const uint32_t table_address = top - table_size; uint16_t * table = &vdp1.vram.u16[(table_address / 2)]; - // `table_size` is in bytes; divide by two to get uint16_t indicies. for (int32_t y = 0; y < (int32_t)chikorita.height; y++) { for (int32_t x = 0; x < (int32_t)chikorita.width; x++) { int32_t pixel_index = (y * chikorita.width + x); @@ -70,7 +69,7 @@ void main() vdp1.reg.FBCR = 0; // during a framebuffer erase cycle, write the color "black" to each pixel - constexpr uint16_t black = 0x0000; + const uint16_t black = 0x0000; vdp1.reg.EWDR = black; // the EWLR/EWRR macros use somewhat nontrivial math for the X coordinates