commit ac5c008171ba34c1a30fef5b4d59d6b30480b015
Author: Jon Bell <jondbell@protonmail.com>
AuthorDate: Wed Apr 29 09:08:32 2020 -0600
Commit: Jon Bell <jondbell@protonmail.com>
CommitDate: Wed Apr 29 09:08:32 2020 -0600
Clear whole bottom screen
---
source/Readme.md | 1 +
source/graphics.cpp | 2 +-
source/main.cpp | 4 ++--
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/source/Readme.md b/source/Readme.md
index 53cfe7c..e99a7ba 100644
--- a/source/Readme.md
+++ b/source/Readme.md
@@ -39,6 +39,7 @@ while (ta < a-.5) ta += 1 shorthand doesn't get fixed (might be a problem with %
(known from docs)
make button press repeats match pico behavior
+(sort of done. stretch and overflow doesn't work with debug console on bottom screen)
add stretching options (pixel perfect [current], stretch to fit, stretch and overflow (use bottom screen?))
make flip() work for carts without update
diff --git a/source/graphics.cpp b/source/graphics.cpp
index 5b9ef58..12f3840 100644
--- a/source/graphics.cpp
+++ b/source/graphics.cpp
@@ -901,7 +901,7 @@ void Graphics::flipBuffer_SAO(
uint8_t c = _pico8_fb[picoX*128 + picoY];
Color col = PaletteColors[_gfxState_screenPaletteMap[c]];
- int pixIdx = (((x + xOffset)*height)+ ((height - 1) - (y + yOffset)))*3;
+ int pixIdx = (((x + xOffset)*height)+ ((height_o - 1) - (y + yOffset)))*3;
fb_o[pixIdx + 0] = col.Blue;
fb_o[pixIdx + 1] = col.Green;
diff --git a/source/main.cpp b/source/main.cpp
index 3263a9e..9d7771e 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -87,7 +87,7 @@ void clear3dsFrameBuffer() {
//clear top 16 pixels of bottom buffer in case overflow rendering is being used
uint8_t* fbb = gfxGetFramebuffer(GFX_BOTTOM, GFX_LEFT, NULL, NULL);
- memset(fbb, bgcolor, 16*BottomScreenWidth*3);
+ memset(fbb, bgcolor, BottomScreenHeight*BottomScreenWidth*3);
}
@@ -116,7 +116,7 @@ int main(int argc, char* argv[])
consoleInit(GFX_BOTTOM, NULL);
Logger::Write("Loading cart\n");
- console->LoadCart("lilking.p8");
+ console->LoadCart("testcart.p8");
Logger::Write("Cart Loaded\n");
#else