mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[BOOTVID:XBOX] Fix MSVC build
Fix two similar warnings, that were treated as errors:
- warning C4146: unary minus operator applied to unsigned type, result still unsigned
Addendum to fa1ec0a2ed. CORE-16216 CORE-16219
This commit is contained in:
@@ -66,7 +66,7 @@ ApplyPalette(VOID)
|
||||
/* Left panning */
|
||||
for (y = 0; y < SCREEN_HEIGHT; y++)
|
||||
{
|
||||
Frame = (PULONG)(FrameBufferStart + FB_OFFSET(-PanH, y));
|
||||
Frame = (PULONG)(FrameBufferStart + FB_OFFSET(-(LONG)PanH, y));
|
||||
|
||||
for (x = 0; x < PanH; x++)
|
||||
{
|
||||
@@ -98,7 +98,7 @@ ApplyPalette(VOID)
|
||||
}
|
||||
|
||||
/* Bottom panning */
|
||||
Frame = (PULONG)(FrameBufferStart + FB_OFFSET(-PanH, SCREEN_HEIGHT));
|
||||
Frame = (PULONG)(FrameBufferStart + FB_OFFSET(-(LONG)PanH, SCREEN_HEIGHT));
|
||||
for (x = 0; x < PanV * FrameBufferWidth; x++)
|
||||
{
|
||||
*Frame++ = CachedPalette[0];
|
||||
|
||||
Reference in New Issue
Block a user