OS/2 Build break

This commit is contained in:
mkaply%us.ibm.com 2001-03-07 05:58:59 +00:00
parent 2b0091da37
commit 821a8fcb60

View File

@ -352,13 +352,14 @@ nsresult nsRenderingContextOS2::SelectOffScreenDrawingSurface( nsDrawingSurface
{
nsresult rc = NS_ERROR_FAILURE;
nsPaletteInfo palInfo;
mContext->GetPaletteInfo(palInfo);
if( aSurface)
{
NS_IF_RELEASE(mSurface);
mSurface = (nsDrawingSurfaceOS2 *) aSurface;
// If this is a palette device, then select and realize the palette
nsPaletteInfo palInfo;
mContext->GetPaletteInfo(palInfo);
if (palInfo.isPaletteDevice && palInfo.palette)
{