[0.4.13][NTOS:INBV] Fix screen flash and more (#2821)

- Fix screen flash (CORE-16786);
- Don't process rotating bar if not used.

cherry picked from commit 0.4.15-dev-287-g 319374eb71
This commit is contained in:
Joachim Henze 2021-01-15 14:29:57 +01:00
parent 2e4713d711
commit b97a2ae1ca

View file

@ -1277,12 +1277,12 @@ DisplayBootBitmap(IN BOOLEAN TextMode)
#endif
#ifdef INBV_ROTBAR_IMPLEMENTED
if (Bar)
if ((TempRotBarSelection == RB_SQUARE_CELLS) && Bar)
{
/* Save previous screen pixels to buffer */
InbvScreenToBufferBlt(Buffer, 0, 0, 22, 9, 24);
/* Draw the progress bar bit */
InbvBitBlt(Bar, 0, 0);
BitBltPalette(Bar, TRUE, 0, 0);
/* Store it in global buffer */
InbvScreenToBufferBlt(RotBarBuffer, 0, 0, 22, 9, 24);
/* Restore screen pixels */