mirror of
https://github.com/moparisthebest/Simba
synced 2025-01-11 05:38:00 -05:00
Fix
This commit is contained in:
parent
0d2ad4a81a
commit
6825eeb179
@ -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;
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user