зеркало из https://github.com/mozilla/pjs.git
checkin for adam@gimp.org
bug 110793: gcc problem with parameters r=bstell@netscape.com, sr=brendan@mozilla.org
This commit is contained in:
Родитель
3992970b88
Коммит
449d15727b
|
@ -616,8 +616,8 @@ cleanup_and_return:
|
|||
nsXFontAAScaledBitmap::nsXFontAAScaledBitmap(Display *aDisplay,
|
||||
int aScreen,
|
||||
GdkFont *aGdkFont,
|
||||
PRUint32 aSize,
|
||||
PRUint32 aUnscaledSize)
|
||||
PRUint16 aSize,
|
||||
PRUint16 aUnscaledSize)
|
||||
{
|
||||
mAlreadyLoaded = PR_FALSE;
|
||||
mDisplay = aDisplay;
|
||||
|
|
|
@ -60,8 +60,14 @@ class nsHashtable;
|
|||
|
||||
class nsXFontAAScaledBitmap : public nsXFont {
|
||||
public:
|
||||
// we use PRUint16 instead of PRUint32 for the final two arguments in this
|
||||
// constructor to work around a GCC 2.95[.3] bug which would otherwise cause
|
||||
// these parameters to be corrupted in the callee. n.b. at the time of
|
||||
// writing the only caller is passing PRUint16 values anyway (and within
|
||||
// the constructor we go on toassign a parameter to a PRUint16-sized member
|
||||
// variable) so semantically nothing is lost.
|
||||
nsXFontAAScaledBitmap(Display *aDisplay, int aScreen, GdkFont *,
|
||||
PRUint32, PRUint32);
|
||||
PRUint16, PRUint16);
|
||||
~nsXFontAAScaledBitmap();
|
||||
|
||||
void DrawText8(GdkDrawable *Drawable, GdkGC *GC, PRInt32, PRInt32,
|
||||
|
|
Загрузка…
Ссылка в новой задаче