commit df8a1f4996065312b363506bc9f4545a3b27a54c
Author: jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Thu Feb 3 18:50:57 2022 -0700
Commit: jtothebell <j.to.the.bell@gmail.com>
CommitDate: Thu Feb 3 18:50:57 2022 -0700
show screen rightside up when running sdl1.2 imitating miyoo mini
---
platform/miyoomini/source/MiyooMiniHost.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/platform/miyoomini/source/MiyooMiniHost.cpp b/platform/miyoomini/source/MiyooMiniHost.cpp
index 320519e..6b3d575 100644
--- a/platform/miyoomini/source/MiyooMiniHost.cpp
+++ b/platform/miyoomini/source/MiyooMiniHost.cpp
@@ -545,7 +545,11 @@ void Host::drawFrame(uint8_t* picoFb, uint8_t* screenPaletteMap, uint8_t drawMod
uint8_t c = getPixelNibble(x, y, picoFb);
uint32_t col = _mapped32BitColors[screenPaletteMap[c]];
+ #ifdef _DESKTOP
+ base = ((uint32_t *)pixels) + (y * PicoScreenHeight + x);
+ #else
base = ((uint32_t *)pixels) + ((127 - y) * PicoScreenHeight + (127 - x));
+ #endif
base[0] = col;
}
}