mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Fixed necko ifdef.
This commit is contained in:
parent
31b0f03f1f
commit
e87f3dfecd
@ -853,11 +853,7 @@ char *str;
|
||||
if (gImageGroup == NULL)
|
||||
{
|
||||
nsIDeviceContext *deviceCtx = gWindow->GetDeviceContext();
|
||||
#ifdef NECKO
|
||||
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx) != NS_OK)
|
||||
#else
|
||||
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx, nsnull) != NS_OK)
|
||||
#endif
|
||||
{
|
||||
::MessageBox(NULL, "Couldn't create image group",class1Name, MB_OK);
|
||||
NS_RELEASE(deviceCtx);
|
||||
|
@ -448,11 +448,7 @@ nsThrobber::LoadThrobberImages(const nsString& aFileNameMask, PRInt32 aNumImages
|
||||
}
|
||||
|
||||
nsIDeviceContext *deviceCtx = mWidget->GetDeviceContext();
|
||||
#ifndef NECKO
|
||||
mImageGroup->Init(deviceCtx, nsnull);
|
||||
#else
|
||||
mImageGroup->Init(deviceCtx);
|
||||
#endif // NECKO
|
||||
NS_RELEASE(deviceCtx);
|
||||
|
||||
rv = NS_NewTimer(&mTimer);
|
||||
|
@ -860,11 +860,7 @@ char *str;
|
||||
if (gImageGroup == NULL)
|
||||
{
|
||||
nsIDeviceContext *deviceCtx = scribbleData.mContext;
|
||||
#ifdef NECKO
|
||||
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx) != NS_OK)
|
||||
#else
|
||||
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx, nsnull) != NS_OK)
|
||||
#endif
|
||||
{
|
||||
NS_RELEASE(deviceCtx);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user