https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7aec73a76cb22a5a899a61...
commit 7aec73a76cb22a5a899a61de1930ad503cc06dbf Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Mon May 2 03:11:41 2022 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sun Dec 24 21:54:16 2023 +0100
[NTOS:INBV] Minor code style. --- ntoskrnl/inbv/bootanim.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/ntoskrnl/inbv/bootanim.c b/ntoskrnl/inbv/bootanim.c index 331825315b2..68351e6de9b 100644 --- a/ntoskrnl/inbv/bootanim.c +++ b/ntoskrnl/inbv/bootanim.c @@ -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;