mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Add ASSERT for a palette size.
svn path=/trunk/; revision=9258
This commit is contained in:
parent
5b7d8220d3
commit
1eeed5accd
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: color.c,v 1.37 2004/04/28 18:38:07 navaraf Exp $ */
|
/* $Id: color.c,v 1.38 2004/05/01 00:51:51 navaraf Exp $ */
|
||||||
|
|
||||||
// FIXME: Use PXLATEOBJ logicalToSystem instead of int *mapping
|
// FIXME: Use PXLATEOBJ logicalToSystem instead of int *mapping
|
||||||
|
|
||||||
|
@ -341,6 +341,7 @@ UINT STDCALL NtGdiRealizePalette(HDC hDC)
|
||||||
if(SurfGDI->SetPalette)
|
if(SurfGDI->SetPalette)
|
||||||
{
|
{
|
||||||
IntLockGDIDriver(SurfGDI);
|
IntLockGDIDriver(SurfGDI);
|
||||||
|
ASSERT(sysGDI->NumColors <= 256);
|
||||||
success = SurfGDI->SetPalette(dc->PDev, sysPtr, 0, 0, sysGDI->NumColors);
|
success = SurfGDI->SetPalette(dc->PDev, sysPtr, 0, 0, sysGDI->NumColors);
|
||||||
IntUnLockGDIDriver(SurfGDI);
|
IntUnLockGDIDriver(SurfGDI);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue