Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5737ed65d8 |
@@ -54,6 +54,22 @@ PlasmaWindow::PlasmaWindow():
|
|||||||
}
|
}
|
||||||
blitBuffer = new unsigned long[plasmaWidth * plasmaHeight];
|
blitBuffer = new unsigned long[plasmaWidth * plasmaHeight];
|
||||||
memset(blitBuffer, 0, plasmaWidth * plasmaHeight * sizeof(unsigned long));
|
memset(blitBuffer, 0, plasmaWidth * plasmaHeight * sizeof(unsigned long));
|
||||||
|
|
||||||
|
//
|
||||||
|
// INITIALIZE THE DISPLAY AREA (2026-08-10). PixelMap8(w,h) allocates its
|
||||||
|
// pixel bytes UNCLEARED (GRAPH2D.cpp: `new Byte[w*h]`, no memset), so the
|
||||||
|
// 128x32 plasma buffer starts as heap garbage. The real pod never showed
|
||||||
|
// it: the serial PlasmaDisplay transfers only CHANGED lines (changedLine[]
|
||||||
|
// is zeroed by the base ctor), so the garbage never left the buffer and
|
||||||
|
// the hardware marquee sat at its power-on blank. This desktop window
|
||||||
|
// blits the WHOLE buffer every frame, so the junk was visible from boot
|
||||||
|
// until the gauge renderer first drew the callsigns. Clear to index 0
|
||||||
|
// (the near-black background) -- the window comes up blank like the
|
||||||
|
// hardware did.
|
||||||
|
//
|
||||||
|
if (pixelBuffer != NULL && pixelBuffer->Data.MapPointer != NULL)
|
||||||
|
memset(pixelBuffer->Data.MapPointer, 0, plasmaWidth * plasmaHeight);
|
||||||
|
|
||||||
DEBUG_STREAM << "[plasmawin] desktop plasma display up (scale x"
|
DEBUG_STREAM << "[plasmawin] desktop plasma display up (scale x"
|
||||||
<< scale << ")\n" << std::flush;
|
<< scale << ")\n" << std::flush;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user