From 382246905ba34d93965d4ad838aa3c26a052d061 Mon Sep 17 00:00:00 2001 From: joevt Date: Tue, 16 Apr 2024 01:53:22 -0700 Subject: [PATCH] videoctrl: Init palette to black. --- devices/video/videoctrl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/video/videoctrl.h b/devices/video/videoctrl.h index 05f8458..91b7b28 100644 --- a/devices/video/videoctrl.h +++ b/devices/video/videoctrl.h @@ -88,7 +88,7 @@ protected: float refresh_rate; bool draw_fb = true; - uint32_t palette[256]; // internal DAC palette in RGBA format + uint32_t palette[256] = {0}; // internal DAC palette in RGBA format // Framebuffer parameters uint8_t* fb_ptr = nullptr;