Skip to content
Snippets Groups Projects
Commit 975324f9 authored by Erik Inge Bolsø's avatar Erik Inge Bolsø Committed by Alexandre Julliard
Browse files

CreateBitmap can take nHeight or nWidth = zero, and then returns a

pointer to a 1x1 monochrome bitmap.
parent 9bd7e602
Branches
Tags
No related merge requests found
......@@ -110,7 +110,13 @@ HBITMAP WINAPI CreateBitmap( INT width, INT height, UINT planes,
/* Check parameters */
if (!height || !width) return 0;
if (!height || !width)
{
height = 1;
width = 1;
planes = 1;
bpp = 1;
}
if (planes != 1) {
FIXME("planes = %d\n", planes);
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment