[NTOS:INBV] Minor code style.

This commit is contained in:
Hermès Bélusca-Maïto 2022-05-02 03:11:41 +02:00
parent 7b956a0a1f
commit 7aec73a76c
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -28,13 +28,6 @@
*/
// #define REACTOS_SKUS
typedef enum _ROT_BAR_TYPE
{
RB_UNSPECIFIED,
RB_SQUARE_CELLS,
RB_PROGRESS_BAR
} ROT_BAR_TYPE;
/*
* BitBltAligned() alignments
*/
@ -81,6 +74,13 @@ typedef enum _ROT_BAR_STATUS
RBS_STATUS_MAX
} ROT_BAR_STATUS;
typedef enum _ROT_BAR_TYPE
{
RB_UNSPECIFIED,
RB_SQUARE_CELLS,
RB_PROGRESS_BAR
} ROT_BAR_TYPE;
static BOOLEAN RotBarThreadActive = FALSE;
static ROT_BAR_TYPE RotBarSelection = RB_UNSPECIFIED;
static ROT_BAR_STATUS PltRotBarStatus = 0;
@ -346,6 +346,8 @@ InbvRotationThread(
ULONG X, Y, Index, Total;
LARGE_INTEGER Delay = {{0}};
UNREFERENCED_PARAMETER(Context);
InbvAcquireLock();
if (RotBarSelection == RB_SQUARE_CELLS)
{
@ -378,7 +380,7 @@ InbvRotationThread(
if (RotBarSelection == RB_SQUARE_CELLS)
{
Delay.QuadPart = -800000; // 80 ms
Delay.QuadPart = -800000LL; // 80 ms
Total = 18;
Index %= Total;
@ -409,7 +411,7 @@ InbvRotationThread(
}
else if (RotBarSelection == RB_PROGRESS_BAR)
{
Delay.QuadPart = -600000; // 60 ms
Delay.QuadPart = -600000LL; // 60 ms
Total = SCREEN_WIDTH;
Index %= Total;