mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
2003-06-05 Casper S. Hornstrup <[email protected]>
* lib/user32/windows/icon.c (CURSORICON_FindBestCursor, CURSORICON_FindBestIcon): Fix unsigned/signed warning. svn path=/trunk/; revision=4843
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2003-06-05 Casper S. Hornstrup <[email protected]>
|
||||
|
||||
* lib/user32/windows/icon.c (CURSORICON_FindBestCursor,
|
||||
CURSORICON_FindBestIcon): Fix unsigned/signed warning.
|
||||
|
||||
2003-06-05 Casper S. Hornstrup <[email protected]>
|
||||
|
||||
Changes for compiling with w32api
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* 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
|
||||
@@ -464,8 +464,8 @@ CURSORICON_FindBestCursor( CURSORICONDIR *dir, int width, int height, int colors
|
||||
/* 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);
|
||||
|
||||
@@ -517,8 +517,8 @@ CURSORICON_FindBestIcon( CURSORICONDIR *dir, int width, int height, int colors)
|
||||
/* 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)
|
||||
|
||||
Reference in New Issue
Block a user