[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:
Stanislav Motylkov
2025-12-18 19:38:48 +01:00
parent ea90485339
commit c3f3b2b0ad

View File

@@ -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];