mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[NTOS:INBV] Minor code style.
This commit is contained in:
parent
7b956a0a1f
commit
7aec73a76c
|
@ -28,13 +28,6 @@
|
||||||
*/
|
*/
|
||||||
// #define REACTOS_SKUS
|
// #define REACTOS_SKUS
|
||||||
|
|
||||||
typedef enum _ROT_BAR_TYPE
|
|
||||||
{
|
|
||||||
RB_UNSPECIFIED,
|
|
||||||
RB_SQUARE_CELLS,
|
|
||||||
RB_PROGRESS_BAR
|
|
||||||
} ROT_BAR_TYPE;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BitBltAligned() alignments
|
* BitBltAligned() alignments
|
||||||
*/
|
*/
|
||||||
|
@ -81,6 +74,13 @@ typedef enum _ROT_BAR_STATUS
|
||||||
RBS_STATUS_MAX
|
RBS_STATUS_MAX
|
||||||
} ROT_BAR_STATUS;
|
} ROT_BAR_STATUS;
|
||||||
|
|
||||||
|
typedef enum _ROT_BAR_TYPE
|
||||||
|
{
|
||||||
|
RB_UNSPECIFIED,
|
||||||
|
RB_SQUARE_CELLS,
|
||||||
|
RB_PROGRESS_BAR
|
||||||
|
} ROT_BAR_TYPE;
|
||||||
|
|
||||||
static BOOLEAN RotBarThreadActive = FALSE;
|
static BOOLEAN RotBarThreadActive = FALSE;
|
||||||
static ROT_BAR_TYPE RotBarSelection = RB_UNSPECIFIED;
|
static ROT_BAR_TYPE RotBarSelection = RB_UNSPECIFIED;
|
||||||
static ROT_BAR_STATUS PltRotBarStatus = 0;
|
static ROT_BAR_STATUS PltRotBarStatus = 0;
|
||||||
|
@ -346,6 +346,8 @@ InbvRotationThread(
|
||||||
ULONG X, Y, Index, Total;
|
ULONG X, Y, Index, Total;
|
||||||
LARGE_INTEGER Delay = {{0}};
|
LARGE_INTEGER Delay = {{0}};
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(Context);
|
||||||
|
|
||||||
InbvAcquireLock();
|
InbvAcquireLock();
|
||||||
if (RotBarSelection == RB_SQUARE_CELLS)
|
if (RotBarSelection == RB_SQUARE_CELLS)
|
||||||
{
|
{
|
||||||
|
@ -378,7 +380,7 @@ InbvRotationThread(
|
||||||
|
|
||||||
if (RotBarSelection == RB_SQUARE_CELLS)
|
if (RotBarSelection == RB_SQUARE_CELLS)
|
||||||
{
|
{
|
||||||
Delay.QuadPart = -800000; // 80 ms
|
Delay.QuadPart = -800000LL; // 80 ms
|
||||||
Total = 18;
|
Total = 18;
|
||||||
Index %= Total;
|
Index %= Total;
|
||||||
|
|
||||||
|
@ -409,7 +411,7 @@ InbvRotationThread(
|
||||||
}
|
}
|
||||||
else if (RotBarSelection == RB_PROGRESS_BAR)
|
else if (RotBarSelection == RB_PROGRESS_BAR)
|
||||||
{
|
{
|
||||||
Delay.QuadPart = -600000; // 60 ms
|
Delay.QuadPart = -600000LL; // 60 ms
|
||||||
Total = SCREEN_WIDTH;
|
Total = SCREEN_WIDTH;
|
||||||
Index %= Total;
|
Index %= Total;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue