mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-24 02:02:17 -05:00
libMML: Changed the indentation.
This commit is contained in:
parent
62ee91ab89
commit
851c5a8b36
@ -15,6 +15,11 @@ Const
|
||||
MOUSE_UP = 0;
|
||||
MOUSE_DOWN = 1;
|
||||
|
||||
{
|
||||
Global variables.
|
||||
To actually read the last_error, make sure you copy it to a safe place
|
||||
directly after the function call.
|
||||
}
|
||||
var
|
||||
last_error: String;
|
||||
debug: boolean;
|
||||
@ -144,9 +149,7 @@ function get_mouse_pos(C: TClient; var t: tpoint): integer; cdecl;
|
||||
|
||||
begin
|
||||
if not validate_client(C) then
|
||||
begin
|
||||
exit(RESULT_ERROR);
|
||||
end;
|
||||
|
||||
try
|
||||
C.IOManager.GetMousePos(t.x,t.y);
|
||||
@ -515,7 +518,7 @@ begin
|
||||
cts := C.MFinder.GetToleranceSpeed;
|
||||
result := RESULT_OK;
|
||||
except on e: Exception do
|
||||
begin;
|
||||
begin
|
||||
set_last_error(e.message);
|
||||
result := RESULT_ERROR;
|
||||
end
|
||||
@ -529,7 +532,7 @@ begin
|
||||
C.MFinder.SetToleranceSpeed2Modifiers(nHue, nSat);
|
||||
result := RESULT_OK;
|
||||
except on e : Exception do
|
||||
begin;
|
||||
begin
|
||||
set_last_error(e.message);
|
||||
result := RESULT_ERROR;
|
||||
end;
|
||||
@ -547,7 +550,7 @@ begin
|
||||
satMod := s;
|
||||
result := RESULT_OK;
|
||||
except on e : Exception do
|
||||
begin;
|
||||
begin
|
||||
set_last_error(e.message);
|
||||
result := RESULT_ERROR;
|
||||
end;
|
||||
@ -677,7 +680,7 @@ begin
|
||||
C.IOManager.SetTarget(Arr, Size);
|
||||
result := RESULT_OK;
|
||||
except on e : Exception do
|
||||
begin;
|
||||
begin
|
||||
set_last_error(e.message);
|
||||
result := RESULT_FALSE;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user