mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Silence some debug messages
svn path=/trunk/; revision=4245
This commit is contained in:
parent
85f75f7691
commit
d339a04507
1 changed files with 8 additions and 6 deletions
|
@ -3,10 +3,12 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <win32k/bitmaps.h>
|
#include <win32k/bitmaps.h>
|
||||||
#include <win32k/debug.h>
|
#include <win32k/debug.h>
|
||||||
#include <debug.h>
|
|
||||||
#include "../eng/handle.h"
|
#include "../eng/handle.h"
|
||||||
#include <ntos/minmax.h>
|
#include <ntos/minmax.h>
|
||||||
|
|
||||||
|
#define NDEBUG
|
||||||
|
#include <win32k/debug1.h>
|
||||||
|
|
||||||
UINT STDCALL W32kSetDIBColorTable(HDC hDC,
|
UINT STDCALL W32kSetDIBColorTable(HDC hDC,
|
||||||
UINT StartIndex,
|
UINT StartIndex,
|
||||||
UINT Entries,
|
UINT Entries,
|
||||||
|
@ -347,7 +349,7 @@ HBITMAP STDCALL W32kCreateDIBitmap(HDC hdc, const BITMAPINFOHEADER *header,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DbgPrint("(%ld): wrong size for data\n", data->bmiHeader.biSize );
|
DPRINT("(%ld): wrong size for data\n", data->bmiHeader.biSize );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -422,7 +424,7 @@ HBITMAP DIB_CreateDIBSection(
|
||||||
UINT Entries = 0;
|
UINT Entries = 0;
|
||||||
BITMAP bm;
|
BITMAP bm;
|
||||||
|
|
||||||
DbgPrint("format (%ld,%ld), planes %d, bpp %d, size %ld, colors %ld (%s)\n",
|
DPRINT("format (%ld,%ld), planes %d, bpp %d, size %ld, colors %ld (%s)\n",
|
||||||
bi->biWidth, bi->biHeight, bi->biPlanes, bi->biBitCount,
|
bi->biWidth, bi->biHeight, bi->biPlanes, bi->biBitCount,
|
||||||
bi->biSizeImage, bi->biClrUsed, usage == DIB_PAL_COLORS? "PAL" : "RGB");
|
bi->biSizeImage, bi->biClrUsed, usage == DIB_PAL_COLORS? "PAL" : "RGB");
|
||||||
|
|
||||||
|
@ -444,7 +446,7 @@ HBITMAP DIB_CreateDIBSection(
|
||||||
if (section)
|
if (section)
|
||||||
/* bm.bmBits = MapViewOfFile(section, FILE_MAP_ALL_ACCESS,
|
/* bm.bmBits = MapViewOfFile(section, FILE_MAP_ALL_ACCESS,
|
||||||
0L, offset, totalSize); */
|
0L, offset, totalSize); */
|
||||||
DbgPrint("DIB_CreateDIBSection: Cannot yet handle section DIBs\n");
|
DPRINT("DIB_CreateDIBSection: Cannot yet handle section DIBs\n");
|
||||||
else if (ovr_pitch && offset)
|
else if (ovr_pitch && offset)
|
||||||
bm.bmBits = (LPVOID) offset;
|
bm.bmBits = (LPVOID) offset;
|
||||||
else {
|
else {
|
||||||
|
@ -525,7 +527,7 @@ HBITMAP DIB_CreateDIBSection(
|
||||||
// Clean up in case of errors
|
// Clean up in case of errors
|
||||||
if (!res || !bmp || !dib || !bm.bmBits)
|
if (!res || !bmp || !dib || !bm.bmBits)
|
||||||
{
|
{
|
||||||
DbgPrint("got an error res=%08x, bmp=%p, dib=%p, bm.bmBits=%p\n", res, bmp, dib, bm.bmBits);
|
DPRINT("got an error res=%08x, bmp=%p, dib=%p, bm.bmBits=%p\n", res, bmp, dib, bm.bmBits);
|
||||||
/* if (bm.bmBits)
|
/* if (bm.bmBits)
|
||||||
{
|
{
|
||||||
if (section)
|
if (section)
|
||||||
|
@ -652,7 +654,7 @@ int DIB_GetBitmapInfo( const BITMAPINFOHEADER *header, DWORD *width,
|
||||||
*compr = 0;
|
*compr = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
DbgPrint("(%ld): wrong size for header\n", header->biSize );
|
DPRINT("(%ld): wrong size for header\n", header->biSize );
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue