Problem solved :
Code:
#ifdef __BUTTONS_V19
CD3DFont* pFont = p2DRender->GetFont();
p2DRender->SetFont( CWndBase::m_Theme.m_pFontButton );
if ( pWndButton->IsPush() )
{
p2DRender->TextOut( pt.x, pt.y + 3, pWndButton->GetTitle(), 0xffffffff );
p2DRender->TextOut( pt.x, pt.y + 2, pWndButton->GetTitle(), dwColor );
}
else if (pWndButton->IsWindowEnabled() == FALSE )
{
p2DRender->TextOut( pt.x, pt.y + 1, pWndButton->GetTitle(), dwColor );
}
else
{
p2DRender->TextOut( pt.x, pt.y + 2, pWndButton->GetTitle(), 0xffffffff );
p2DRender->TextOut( pt.x, pt.y + 1, pWndButton->GetTitle(), dwColor );
}
p2DRender->SetFont( pFont );
#else
p2DRender->TextOut( pt.x, pt.y, pWndButton->GetTitle(), dwColor);
#endif// __BUTTONS_V19
Just Delete x2
Quote:
Code:
p2DRender->TextOut( pt.x, pt.y + 2, pWndButton->GetTitle(), 0xffffffff );
|