Increesed buffer sizes

This commit is contained in:
2025-06-03 20:22:15 +02:00
parent d2100456be
commit 276daa6c39

View File

@ -101,15 +101,16 @@ int main()
bool skipped;
int lastx, lasty;
uint8_t* frame;
uint8_t* displayBuf = malloc(screenWidth * screenHeight * 3); // Working frame data
uint8_t* screenBuf = malloc(screenWidth * screenHeight * 3); // Present frame data
char* renderBuf = malloc(screenWidth * screenHeight * 40); // Render frame data
uint8_t* displayBuf = malloc(screenWidth * screenHeight * 3 * 16); // Working frame data
uint8_t* screenBuf = malloc(screenWidth * screenHeight * 3 * 16); // Present frame data
char* renderBuf = malloc(screenWidth * screenHeight * 40 * 16); // Render frame data
char* renderBufCur;
const float fGifWidth = (float)gifWidth;
const float fGifHeight = (float)gifHeight;
// display and screen buffers are oversized, to avoid resizing at runtime.
// Screen resolution SHOULD be enough...
// x16 for good mesure :D
// Rewind gif and play music
main_start: