Fixed ref count problem

git-svn-id: svn://10.0.0.236/trunk@12282 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
1998-10-08 15:23:03 +00:00
parent 02c10d948a
commit dec17db9e2

View File

@@ -22,7 +22,7 @@
#include "nsString.h"
#include <windows.h>
NS_IMPL_ADDREF(nsTextAreaWidget)
/*NS_IMPL_ADDREF(nsTextAreaWidget)
//NS_IMPL_RELEASE(nsTextAreaWidget)
nsrefcnt nsTextAreaWidget::Release(void)
{
@@ -32,18 +32,10 @@ nsrefcnt nsTextAreaWidget::Release(void)
return 0;
}
return mRefCnt;
}
//-------------------------------------------------------------------------
void nsTextAreaWidget::SetUpForPaint(HDC aHDC)
{
NS_INIT_REFCNT();
::SetBkColor (aHDC, NSRGB_2_COLOREF(mBackground));
::SetTextColor(aHDC, NSRGB_2_COLOREF(mForeground));
//::SetBkMode (aHDC, TRANSPARENT); // don't do this
}
}*/
NS_IMPL_ADDREF(nsTextAreaWidget)
NS_IMPL_RELEASE(nsTextAreaWidget)
//-------------------------------------------------------------------------
//
@@ -52,6 +44,7 @@ void nsTextAreaWidget::SetUpForPaint(HDC aHDC)
//-------------------------------------------------------------------------
nsTextAreaWidget::nsTextAreaWidget()
{
NS_INIT_REFCNT();
nsTextHelper::mBackground = NS_RGB(124, 124, 124);
}
@@ -64,6 +57,13 @@ nsTextAreaWidget::~nsTextAreaWidget()
{
}
//-------------------------------------------------------------------------
void nsTextAreaWidget::SetUpForPaint(HDC aHDC)
{
::SetBkColor (aHDC, NSRGB_2_COLOREF(mBackground));
::SetTextColor(aHDC, NSRGB_2_COLOREF(mForeground));
//::SetBkMode (aHDC, TRANSPARENT); // don't do this
}
//-------------------------------------------------------------------------
//