[FRAMEBUF]

Fix MSVC warnings

svn path=/trunk/; revision=61665
This commit is contained in:
Timo Kreuzer 2014-01-18 00:40:22 +00:00
parent c87bcbd756
commit ade4c1fae8

View file

@ -190,7 +190,7 @@ IntInitScreenInfo(
ppdev->ScreenWidth = SelectedMode->VisScreenWidth; ppdev->ScreenWidth = SelectedMode->VisScreenWidth;
ppdev->ScreenHeight = SelectedMode->VisScreenHeight; ppdev->ScreenHeight = SelectedMode->VisScreenHeight;
ppdev->ScreenDelta = SelectedMode->ScreenStride; ppdev->ScreenDelta = SelectedMode->ScreenStride;
ppdev->BitsPerPixel = SelectedMode->BitsPerPlane * SelectedMode->NumberOfPlanes; ppdev->BitsPerPixel = (UCHAR)(SelectedMode->BitsPerPlane * SelectedMode->NumberOfPlanes);
ppdev->MemWidth = SelectedMode->VideoMemoryBitmapWidth; ppdev->MemWidth = SelectedMode->VideoMemoryBitmapWidth;
ppdev->MemHeight = SelectedMode->VideoMemoryBitmapHeight; ppdev->MemHeight = SelectedMode->VideoMemoryBitmapHeight;
@ -316,7 +316,7 @@ IntInitScreenInfo(
pDevInfo->flGraphicsCaps |= GCAPS_PALMANAGED; pDevInfo->flGraphicsCaps |= GCAPS_PALMANAGED;
pDevInfo->iDitherFormat = BMF_8BPP; pDevInfo->iDitherFormat = BMF_8BPP;
/* Assuming palette is orthogonal - all colors are same size. */ /* Assuming palette is orthogonal - all colors are same size. */
ppdev->PaletteShift = 8 - pGdiInfo->ulDACRed; ppdev->PaletteShift = (UCHAR)(8 - pGdiInfo->ulDACRed);
} }
else else
{ {