[Project64] Clean up some warnings in List Control

This commit is contained in:
zilmar 2017-11-10 16:52:10 +11:00
parent bf5ec6dfc5
commit 0730582085
2 changed files with 11 additions and 11 deletions

View File

@ -2579,7 +2579,7 @@ public:
return TRUE;
}
void OnTimer( UINT nIDEvent )
void OnTimer(UINT_PTR nIDEvent )
{
switch ( nIDEvent )
{
@ -3158,16 +3158,16 @@ public:
TRIVERTEX triVertext[ 2 ] = {
rcRect.left,
rcRect.top,
GetRValue( rgbTop ) << 8,
GetGValue( rgbTop ) << 8,
GetBValue( rgbTop ) << 8,
0x0000,
(COLOR16)(GetRValue( rgbTop ) << 8),
(COLOR16)(GetGValue( rgbTop ) << 8),
(COLOR16)(GetBValue( rgbTop ) << 8),
(COLOR16)(0x0000),
rcRect.right,
rcRect.bottom,
GetRValue( rgbBottom ) << 8,
GetGValue( rgbBottom ) << 8,
GetBValue( rgbBottom ) << 8,
0x0000
(COLOR16)(GetRValue( rgbBottom ) << 8),
(COLOR16)(GetGValue( rgbBottom ) << 8),
(COLOR16)(GetBValue( rgbBottom ) << 8),
(COLOR16)(0x0000)
};
dcPaint.GradientFill( triVertext, 2, &grdRect, 1, GRADIENT_FILL_RECT_V );

View File

@ -171,13 +171,13 @@ public:
break;
case _T( '.' ): if ( !( m_nFlags & ITEM_FLAGS_EDIT_FLOAT ) )
return FALSE;
nDecimalIndex = nCharIndex;
nDecimalIndex = (int)nCharIndex;
nDecimalPoint++;
break;
default: if ( !_istdigit( nCharValue ) )
return FALSE;
if ( nDigitIndex < 0 )
nDigitIndex = nCharIndex;
nDigitIndex = (int)nCharIndex;
break;
}