зеркало из https://github.com/mozilla/pjs.git
Added forgotten initialization.
This commit is contained in:
Родитель
fca4eda62f
Коммит
01f7011acc
|
@ -207,7 +207,7 @@ PRInt32 sspan,dspan,mspan;
|
||||||
void
|
void
|
||||||
nsBlender::Do24Blend(PRUint8 aBlendVal,PRInt32 aNumlines,PRInt32 aNumbytes,PRUint8 *aSImage,PRUint8 *aDImage,PRUint8 *aSecondSImage,PRInt32 aSLSpan,PRInt32 aDLSpan,nsBlendQuality aBlendQuality,nscolor aSrcBackColor, nscolor aSecondSrcBackColor, nsPixelFormat &aPixFormat)
|
nsBlender::Do24Blend(PRUint8 aBlendVal,PRInt32 aNumlines,PRInt32 aNumbytes,PRUint8 *aSImage,PRUint8 *aDImage,PRUint8 *aSecondSImage,PRInt32 aSLSpan,PRInt32 aDLSpan,nsBlendQuality aBlendQuality,nscolor aSrcBackColor, nscolor aSecondSrcBackColor, nsPixelFormat &aPixFormat)
|
||||||
{
|
{
|
||||||
PRUint8 *d1,*d2,*s1,*s2,*ss1,*ss2;
|
PRUint8 *d1,*d2,*s1,*s2,*ss1;
|
||||||
PRUint32 val1,val2;
|
PRUint32 val1,val2;
|
||||||
PRInt32 x,y,temp1,numlines,xinc,yinc;
|
PRInt32 x,y,temp1,numlines,xinc,yinc;
|
||||||
PRUint16 srccolor,secsrccolor;
|
PRUint16 srccolor,secsrccolor;
|
||||||
|
|
|
@ -271,7 +271,7 @@ SetUpBlend()
|
||||||
{
|
{
|
||||||
void *bits1,*bits2;
|
void *bits1,*bits2;
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
nsIDeviceContext *dx;
|
nsIDeviceContext *dx = nsnull;
|
||||||
|
|
||||||
static NS_DEFINE_IID(kBlenderCID, NS_BLENDER_CID);
|
static NS_DEFINE_IID(kBlenderCID, NS_BLENDER_CID);
|
||||||
static NS_DEFINE_IID(kBlenderIID, NS_IBLENDER_IID);
|
static NS_DEFINE_IID(kBlenderIID, NS_IBLENDER_IID);
|
||||||
|
@ -321,7 +321,7 @@ Restore(nsIBlender *aBlender,nsIImage *aImage)
|
||||||
PRUint8 *thebytes,*curbyte,*srcbytes,*cursourcebytes;
|
PRUint8 *thebytes,*curbyte,*srcbytes,*cursourcebytes;
|
||||||
PRUint16 *cur16;
|
PRUint16 *cur16;
|
||||||
PRInt32 w,h,ls,x,y,numbytes,sls;
|
PRInt32 w,h,ls,x,y,numbytes,sls;
|
||||||
HDC dstdc;
|
HDC dstdc = 0;
|
||||||
HBITMAP srcbits,tb1;
|
HBITMAP srcbits,tb1;
|
||||||
BITMAP srcinfo;
|
BITMAP srcinfo;
|
||||||
LPBITMAPINFOHEADER srcbinfo;
|
LPBITMAPINFOHEADER srcbinfo;
|
||||||
|
@ -514,7 +514,7 @@ nsresult result = NS_ERROR_FAILURE;
|
||||||
PRUint8 *thebytes,*curbyte,*srcbytes,*cursourcebytes;
|
PRUint8 *thebytes,*curbyte,*srcbytes,*cursourcebytes;
|
||||||
PRUint16 *cur16;
|
PRUint16 *cur16;
|
||||||
PRInt32 w,h,ls,x,y,numbytes,sls;
|
PRInt32 w,h,ls,x,y,numbytes,sls;
|
||||||
HDC srcdc,dstdc;
|
HDC srcdc = 0,dstdc = 0;
|
||||||
HBITMAP srcbits,tb1;
|
HBITMAP srcbits,tb1;
|
||||||
BITMAP srcinfo;
|
BITMAP srcinfo;
|
||||||
LPBITMAPINFOHEADER srcbinfo;
|
LPBITMAPINFOHEADER srcbinfo;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче