{
int rc = -1;
UINT32 i, j;
- HGDI_DC hdc;
- HGDI_PEN pen;
- HGDI_BITMAP hBmp;
- HGDI_BITMAP hBmp_Ellipse_1;
- HGDI_BITMAP hBmp_Ellipse_2;
- HGDI_BITMAP hBmp_Ellipse_3;
const UINT32 RawFormat = PIXEL_FORMAT_RGB8;
const UINT32 colorFormats[] =
{
for (i = 0; i < number_formats; i++)
{
+ HGDI_DC hdc = NULL;
+ HGDI_PEN pen = NULL;
+ HGDI_BITMAP hBmp = NULL;
+ HGDI_BITMAP hBmp_Ellipse_1 = NULL;
+ HGDI_BITMAP hBmp_Ellipse_2 = NULL;
+ HGDI_BITMAP hBmp_Ellipse_3 = NULL;
const UINT32 format = colorFormats[i];
gdiPalette* hPalette = &g;
g.format = format;
goto fail;
}
- if (!gdi_Ellipse(hdc, 0, 0, 16, 16))
+ if (!gdi_Ellipse(hdc, 0, 0, 15, 15))
goto fail;
rc = 0;
gdi_DeleteObject((HGDIOBJECT) hBmp_Ellipse_1);
gdi_DeleteObject((HGDIOBJECT) hBmp_Ellipse_2);
gdi_DeleteObject((HGDIOBJECT) hBmp_Ellipse_3);
+ gdi_DeleteObject((HGDIOBJECT) hBmp);
gdi_DeleteObject((HGDIOBJECT) pen);
gdi_DeleteDC(hdc);