b = 143363 r=rods sr=kin. A DC was not being released properly on windows, it is now.
This commit is contained in:
Родитель
73e8384596
Коммит
a576a0781c
|
@ -612,7 +612,7 @@ void nsImageWin::DrawComposited24(unsigned char *aBits, int aX, int aY, int aWid
|
|||
void nsImageWin::DrawComposited(HDC TheHDC, int aDX, int aDY, int aDWidth, int aDHeight,
|
||||
int aSX, int aSY, int aSWidth, int aSHeight)
|
||||
{
|
||||
HDC memDC = CreateCompatibleDC(TheHDC);
|
||||
HDC memDC = ::CreateCompatibleDC(TheHDC);
|
||||
unsigned char *screenBits;
|
||||
ALPHA24BITMAPINFO bmi(aSWidth, aSHeight);
|
||||
HBITMAP tmpBitmap = ::CreateDIBSection(memDC, (LPBITMAPINFO)&bmi, DIB_RGB_COLORS,
|
||||
|
@ -632,7 +632,7 @@ void nsImageWin::DrawComposited(HDC TheHDC, int aDX, int aDY, int aDWidth, int a
|
|||
|
||||
::SelectObject(memDC, oldBitmap);
|
||||
::DeleteObject(tmpBitmap);
|
||||
::DeleteObject(memDC);
|
||||
::DeleteDC(memDC);
|
||||
}
|
||||
|
||||
/** ---------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче