diff --git a/gfx/src/motif/nsDeviceContextMotif.h b/gfx/src/motif/nsDeviceContextMotif.h index df35d6064aa5..ee9fe456f16c 100644 --- a/gfx/src/motif/nsDeviceContextMotif.h +++ b/gfx/src/motif/nsDeviceContextMotif.h @@ -67,6 +67,7 @@ public: NS_IMETHOD GetPaletteInfo(nsPaletteInfo&); NS_IMETHOD Init(nsNativeWidget aNativeWidget); NS_IMETHOD GetScrollBarDimensions(float &aWidth, float &aHeight) const; + NS_IMETHOD GetSystemAttribute(nsSystemAttrID anID, SystemAttrStruct * aInfo) const; NS_IMETHOD GetDrawingSurface(nsIRenderingContext &aContext, nsDrawingSurface &aSurface); NS_IMETHOD ConvertPixel(nscolor aColor, PRUint32 & aPixel); diff --git a/gfx/src/motif/nsImageMotif.h b/gfx/src/motif/nsImageMotif.h index 83898de2e200..f6522cf16f5b 100644 --- a/gfx/src/motif/nsImageMotif.h +++ b/gfx/src/motif/nsImageMotif.h @@ -24,6 +24,16 @@ #include "X11/Xlib.h" #include "X11/Xutil.h" +/* taken from ../nsBlender.h */ +typedef enum +{ + nsLowQual = 0, + nsLowMedQual, + nsMedQual, + nsHighMedQual, + nsHighQual +} nsBlendQuality; + class nsImageMotif : public nsIImage { public: @@ -35,10 +45,12 @@ public: /** @see nsIImage.h */ + virtual PRInt32 GetBytesPix() { return mNumBytesPixel; } virtual PRInt32 GetHeight() { return mHeight; } virtual PRInt32 GetWidth() { return mWidth; } virtual PRUint8* GetBits() { return mImageBits; } virtual void* GetBitInfo() { return nsnull; } + virtual PRBool GetIsRowOrderTopToBottom() { return mIsTopToBottom; } virtual PRInt32 GetLineStride() {return mRowBytes; } NS_IMETHOD Draw(nsIRenderingContext &aContext, nsDrawingSurface aSurface, PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); NS_IMETHOD Draw(nsIRenderingContext &aContext, nsDrawingSurface aSurface, PRInt32 aSX, PRInt32 aSY, PRInt32 aSWidth, PRInt32 aSHeight, @@ -108,6 +120,7 @@ private: PRBool mConverted; PRUint8 *mBitsForCreate; PRInt32 mSizeImage; + PRBool mIsTopToBottom; XImage *mImage ; nsColorMap *mColorMap; PRInt16 mNumPalleteColors;