mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Simplifying MakeInfoDC.
svn path=/trunk/; revision=46692
This commit is contained in:
parent
066b696c33
commit
d7c28ad92a
1 changed files with 6 additions and 6 deletions
|
@ -606,13 +606,14 @@ MakeInfoDC(PDC pdc, BOOL bSet)
|
||||||
pdc->dctype = DC_TYPE_INFO;
|
pdc->dctype = DC_TYPE_INFO;
|
||||||
pdc->dclevel.pSurface = NULL;
|
pdc->dclevel.pSurface = NULL;
|
||||||
|
|
||||||
if (PDEV_sizl(pdc->ppdev, &sizl)->cx == pdc->dclevel.sizl.cx &&
|
PDEV_sizl(pdc->ppdev, &sizl);
|
||||||
PDEV_sizl(pdc->ppdev, &sizl)->cy == pdc->dclevel.sizl.cy)
|
|
||||||
|
if ( sizl.cx == pdc->dclevel.sizl.cx &&
|
||||||
|
sizl.cy == pdc->dclevel.sizl.cy )
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
pdc->dclevel.sizl.cx = PDEV_sizl(pdc->ppdev, &sizl)->cx;
|
pdc->dclevel.sizl.cx = sizl.cx;
|
||||||
pdc->dclevel.sizl.cy = sizl.cy;
|
pdc->dclevel.sizl.cy = sizl.cy;
|
||||||
IntSetDefaultRegion(pdc);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -632,9 +633,8 @@ MakeInfoDC(PDC pdc, BOOL bSet)
|
||||||
|
|
||||||
pdc->dclevel.sizl.cx = pSurface->SurfObj.sizlBitmap.cx;
|
pdc->dclevel.sizl.cx = pSurface->SurfObj.sizlBitmap.cx;
|
||||||
pdc->dclevel.sizl.cy = pSurface->SurfObj.sizlBitmap.cy;
|
pdc->dclevel.sizl.cy = pSurface->SurfObj.sizlBitmap.cy;
|
||||||
IntSetDefaultRegion(pdc);
|
|
||||||
}
|
}
|
||||||
return TRUE;
|
return IntSetDefaultRegion(pdc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue