зеркало из https://github.com/mozilla/pjs.git
more work in initialization code
This commit is contained in:
Родитель
8504769d61
Коммит
f7aa287462
|
@ -58,6 +58,14 @@ NS_IMETHODIMP nsDeviceContextXlib::Init(nsNativeWidget aNativeWidget)
|
|||
|
||||
mWidget = aNativeWidget;
|
||||
|
||||
CommonInit();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
nsDeviceContextXlib::CommonInit(void)
|
||||
{
|
||||
static nscoord dpi = 96;
|
||||
static int initialized = 0;
|
||||
|
||||
|
@ -89,7 +97,7 @@ NS_IMETHODIMP nsDeviceContextXlib::Init(nsNativeWidget aNativeWidget)
|
|||
|
||||
// printf("GFX: dpi=%d t2p=%g p2t=%g\n", dpi, mTwipsToPixels, mPixelsToTwips);
|
||||
|
||||
return NS_OK;
|
||||
DeviceContextImpl::CommonInit();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextXlib::CreateRenderingContext(nsIRenderingContext *&aContext)
|
||||
|
|
|
@ -52,6 +52,7 @@ public:
|
|||
|
||||
private:
|
||||
virtual ~nsDeviceContextXlib();
|
||||
void CommonInit(void);
|
||||
nsPaletteInfo mPaletteInfo;
|
||||
PRBool mWriteable;
|
||||
PRUint32 mNumCells;
|
||||
|
|
|
@ -734,8 +734,6 @@ NS_IMETHODIMP
|
|||
nsRenderingContextXlib::FillRect(const nsRect& aRect)
|
||||
{
|
||||
printf("nsRenderingContextXlib::FillRect()\n");
|
||||
printf("About to fill rect %d %d %d %d\n",
|
||||
aRect.x, aRect.y, aRect.width, aRect.height);
|
||||
return FillRect(aRect.x, aRect.y, aRect.width, aRect.height);
|
||||
}
|
||||
|
||||
|
@ -753,6 +751,8 @@ nsRenderingContextXlib::FillRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord
|
|||
h = aHeight;
|
||||
|
||||
mTMatrix->TransformCoord(&x,&y,&w,&h);
|
||||
printf("About to fill window %ld with rect %d %d %d %d\n",
|
||||
mRenderingSurface->GetDrawable(), x, y, w, h);
|
||||
::XFillRectangle(gDisplay,
|
||||
mRenderingSurface->GetDrawable(),
|
||||
mRenderingSurface->GetGC(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче