mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
remove unused code. fixed underlining.
This commit is contained in:
parent
6ef69dc2a8
commit
39384f2578
@ -37,15 +37,6 @@ nsDeviceContextGTK::nsDeviceContextGTK()
|
||||
NS_INIT_REFCNT();
|
||||
mTwipsToPixels = 1.0;
|
||||
mPixelsToTwips = 1.0;
|
||||
mRedMask = 0;
|
||||
mGreenMask = 0;
|
||||
mBlueMask = 0;
|
||||
mRedBits = 0;
|
||||
mGreenBits = 0;
|
||||
mBlueBits = 0;
|
||||
mRedOffset = 0;
|
||||
mGreenOffset = 0;
|
||||
mBlueOffset = 0;
|
||||
mDepth = 0 ;
|
||||
mPaletteInfo.isPaletteDevice = PR_FALSE;
|
||||
mPaletteInfo.sizePalette = 0;
|
||||
@ -85,15 +76,6 @@ NS_IMETHODIMP nsDeviceContextGTK::Init(nsNativeWidget aNativeWidget)
|
||||
mPixelsToTwips = 1.0f / mTwipsToPixels;
|
||||
|
||||
vis = gdk_rgb_get_visual();
|
||||
mRedMask = vis->red_mask;
|
||||
mGreenMask = vis->green_mask;
|
||||
mBlueMask = vis->blue_mask;
|
||||
mRedBits = vis->bits_per_rgb;
|
||||
mGreenBits = vis->bits_per_rgb;
|
||||
mBlueBits = vis->bits_per_rgb;
|
||||
mRedOffset = vis->red_shift;
|
||||
mGreenOffset = vis->green_shift;
|
||||
mBlueOffset = vis->blue_shift;
|
||||
mDepth = vis->depth;
|
||||
|
||||
return NS_OK;
|
||||
|
@ -70,15 +70,6 @@ private:
|
||||
PRUint32 mDepth;
|
||||
PRBool mWriteable;
|
||||
nsPaletteInfo mPaletteInfo;
|
||||
PRUint32 mRedMask;
|
||||
PRUint32 mGreenMask;
|
||||
PRUint32 mBlueMask;
|
||||
PRUint32 mRedBits;
|
||||
PRUint32 mGreenBits;
|
||||
PRUint32 mBlueBits;
|
||||
PRUint32 mRedOffset;
|
||||
PRUint32 mGreenOffset;
|
||||
PRUint32 mBlueOffset;
|
||||
GdkColormap *mColormap;
|
||||
PRUint32 mNumCells;
|
||||
};
|
||||
|
@ -286,20 +286,20 @@ void nsFontMetricsGTK::RealizeFont()
|
||||
else
|
||||
{
|
||||
// TODO do some gdk magic and get a '_' and figure it out...
|
||||
mUnderlineOffset = nscoord(mUnderlineOffset * f);
|
||||
}
|
||||
if (::XGetFontProperty(fontInfo, XA_UNDERLINE_THICKNESS, &pr))
|
||||
{
|
||||
g_print("XA_UNDERLINE_THICKNESS = %i\nIf you see the above message, please
|
||||
email pavlov@pavlov.net with the URL that you were on when you got it.", pr);
|
||||
mUnderlineSize = nscoord(pr * f);
|
||||
mUnderlineSize = nscoord(-2 * f);
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO do some gdk magic and get a '_' and figure it out...
|
||||
mUnderlineSize = nscoord(1 * f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
PRUint32 i;
|
||||
|
||||
for (i = 0; i < 256; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user