mirror of
https://github.com/reactos/reactos.git
synced 2026-06-10 01:42:56 +08:00
[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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user