mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:43:25 +00:00
[uxtheme]
- Fix a warning svn path=/trunk/; revision=53750
This commit is contained in:
parent
9bb964caeb
commit
e3ee8d26e9
1 changed files with 2 additions and 1 deletions
|
@ -1735,12 +1735,13 @@ HRESULT WINAPI GetThemeBackgroundExtent(HTHEME hTheme, HDC hdc, int iPartId,
|
||||||
static HBITMAP UXTHEME_DrawThemePartToDib(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCRECT pRect)
|
static HBITMAP UXTHEME_DrawThemePartToDib(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCRECT pRect)
|
||||||
{
|
{
|
||||||
HDC hdcMem;
|
HDC hdcMem;
|
||||||
BITMAPINFO bmi = {0};
|
BITMAPINFO bmi;
|
||||||
HBITMAP hbmp, hbmpOld;
|
HBITMAP hbmp, hbmpOld;
|
||||||
HBRUSH hbrBack;
|
HBRUSH hbrBack;
|
||||||
|
|
||||||
hdcMem = CreateCompatibleDC(0);
|
hdcMem = CreateCompatibleDC(0);
|
||||||
|
|
||||||
|
memset(&bmi, 0, sizeof(bmi));
|
||||||
bmi.bmiHeader.biSize = sizeof(bmi.bmiHeader);
|
bmi.bmiHeader.biSize = sizeof(bmi.bmiHeader);
|
||||||
bmi.bmiHeader.biWidth = pRect->right;
|
bmi.bmiHeader.biWidth = pRect->right;
|
||||||
bmi.bmiHeader.biHeight = -pRect->bottom;
|
bmi.bmiHeader.biHeight = -pRect->bottom;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue