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

- Fix screen flash (CORE-16786);
- Don't process rotating bar if not used.
This commit is contained in:
Yaroslav Kibysh 2020-05-21 01:23:17 +03:00 committed by GitHub
parent e5336bd2af
commit 319374eb71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1279,12 +1279,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 */