mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
OS/2 Build break
This commit is contained in:
parent
2b0091da37
commit
821a8fcb60
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user