Don't call InvertPixelArray with negative width and/or height.
[tangerine.git] / workbench / libs / muimaster / support_aros.c
blob529f63889dea35c7ac9cbd1a15770a44fc6b265b
1 /*
2 Copyright © 2003, The AROS Development Team.
3 All rights reserved.
5 $Id$
6 */
8 #include <stdlib.h>
10 #include <exec/types.h>
12 #include "support_aros.h"
14 /***************************************************
15 Like StrToLong() but for hex numbers
16 (This function is available in OS4)
17 ***************************************************/
18 LONG HexToLong(STRPTR s, ULONG *val)
20 char *end;
21 *val = strtoul(s,&end,16);
22 if (end == (char*)s) return -1;
23 return end - (char*)s;