Author: tkreuzer
Date: Sat Jan 18 00:40:22 2014
New Revision: 61665
URL:
http://svn.reactos.org/svn/reactos?rev=61665&view=rev
Log:
[FRAMEBUF]
Fix MSVC warnings
Modified:
trunk/reactos/win32ss/drivers/displays/framebuf/screen.c
Modified: trunk/reactos/win32ss/drivers/displays/framebuf/screen.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/drivers/displays/f…
==============================================================================
--- trunk/reactos/win32ss/drivers/displays/framebuf/screen.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/drivers/displays/framebuf/screen.c [iso-8859-1] Sat Jan 18
00:40:22 2014
@@ -190,7 +190,7 @@
ppdev->ScreenWidth = SelectedMode->VisScreenWidth;
ppdev->ScreenHeight = SelectedMode->VisScreenHeight;
ppdev->ScreenDelta = SelectedMode->ScreenStride;
- ppdev->BitsPerPixel = SelectedMode->BitsPerPlane *
SelectedMode->NumberOfPlanes;
+ ppdev->BitsPerPixel = (UCHAR)(SelectedMode->BitsPerPlane *
SelectedMode->NumberOfPlanes);
ppdev->MemWidth = SelectedMode->VideoMemoryBitmapWidth;
ppdev->MemHeight = SelectedMode->VideoMemoryBitmapHeight;
@@ -316,7 +316,7 @@
pDevInfo->flGraphicsCaps |= GCAPS_PALMANAGED;
pDevInfo->iDitherFormat = BMF_8BPP;
/* Assuming palette is orthogonal - all colors are same size. */
- ppdev->PaletteShift = 8 - pGdiInfo->ulDACRed;
+ ppdev->PaletteShift = (UCHAR)(8 - pGdiInfo->ulDACRed);
}
else
{