mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:35:53 +00:00
[FRAMEBUF]
Fix MSVC warnings svn path=/trunk/; revision=61665
This commit is contained in:
parent
c87bcbd756
commit
ade4c1fae8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue