mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS:INBV] Minor code style.
This commit is contained in:
parent
7b956a0a1f
commit
7aec73a76c
1 changed files with 11 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue