1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-08-13 16:53:59 -04:00
This commit is contained in:
Merlijn Wajer 2010-06-01 02:03:25 +02:00
parent 0d2ad4a81a
commit 6825eeb179
2 changed files with 10 additions and 3 deletions

View File

@ -102,9 +102,16 @@ begin
end;
function findColor(var x, y: integer; color, x1, y1, x2, y2: integer): boolean;
function findColor(var x, y: integer; color, x1, y1, x2, y2: integer): integer;
begin
C.MFinder.FindColor(x, y, color, x1, y1, x2, y2);
try
C.MFinder.FindColor(x, y, color, x1, y1, x2, y2);
except on e : Exception do
begin
result := RESULT_ERROR;
last_error := PChar(e.Message);
end;
end;
end;
function returnpoints: PTPoint; cdecl;

View File

@ -25,6 +25,6 @@ class Color(object):
return (x, y)
def _initialiseDLLFuncs(self):
self._mc.dll.findColor.restype = c_bool
self._mc.dll.findColor.restype = c_int
self._mc.dll.findColor.argtypes = [PINTEGER, PINTEGER, c_int, c_int,
c_int, c_int, c_int]