+2003-06-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
+
+ * lib/user32/windows/icon.c (CURSORICON_FindBestCursor,
+ CURSORICON_FindBestIcon): Fix unsigned/signed warning.
+
2003-06-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
Changes for compiling with w32api
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: icon.c,v 1.5 2003/06/03 22:25:37 ekohl Exp $
+/* $Id: icon.c,v 1.6 2003/06/05 11:57:12 chorns Exp $
*
* PROJECT: ReactOS user32.dll
* FILE: lib/user32/windows/icon.c
/* Find Best Colors for Best Fit */
for (i = 0, entry = &dir->idEntries[0]; i < dir->idCount; i++,entry++)
{
- if(abs(width - entry->Info.icon.bWidth) == iXDiff &&
- abs(height - entry->Info.icon.bHeight) == iYDiff)
+ if(abs(width - entry->Info.icon.bWidth) == (int) iXDiff &&
+ abs(height - entry->Info.icon.bHeight) == (int) iYDiff)
{
iTempColorDiff = abs(colors - entry->Info.icon.bColorCount);
/* Find Best Colors for Best Fit */
for (i = 0, entry = &dir->idEntries[0]; i < dir->idCount; i++,entry++)
{
- if(abs(width - entry->Info.icon.bWidth) == iXDiff &&
- abs(height - entry->Info.icon.bHeight) == iYDiff)
+ if(abs(width - entry->Info.icon.bWidth) == (int) iXDiff &&
+ abs(height - entry->Info.icon.bHeight) == (int) iYDiff)
{
iTempColorDiff = abs(colors - entry->Info.icon.bColorCount);
if(iColorDiff > iTempColorDiff)