commit 8986390c614ae5279480e9b6a2dbd47767726886
Author: Jon Bell <jondbell@protonmail.com>
AuthorDate: Wed Apr 8 08:12:46 2020 -0600
Commit: Jon Bell <jondbell@protonmail.com>
CommitDate: Wed Apr 8 08:12:46 2020 -0600
Fix colors by swapping blue and red
---
source/graphics.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/graphics.c b/source/graphics.c
index cb67c9f..111e4ff 100644
--- a/source/graphics.c
+++ b/source/graphics.c
@@ -92,9 +92,9 @@ void flipBuffer(u8* fb) {
uint16_t c = _pico8_fb[x*128 + y];
Color col = PaletteColors[c];
- fb[((x*240)+ (239 - y))*3+0] = col.Red;
+ fb[((x*240)+ (239 - y))*3+0] = col.Blue;
fb[((x*240)+ (239 - y))*3+1] = col.Green;
- fb[((x*240)+ (239 - y))*3+2] = col.Blue;
+ fb[((x*240)+ (239 - y))*3+2] = col.Red;
}
}
}