Skip to content

Commit 32aa9ac

Browse files
fix: Make recorder work again
Recorder should now work
1 parent 1080175 commit 32aa9ac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

utils/recorder/subprocess.simba

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ begin
144144
TerminateScript();
145145
end;
146146

147-
if (alignment.MaxWidth > 0) then
147+
if (alignment.Center.MaxWidth > 0) then
148148
begin
149149
Left := alignment.Left.Method() + alignment.Left.Offset;
150150
Right := alignment.Right.Method() + alignment.Right.Offset;
@@ -154,7 +154,7 @@ begin
154154

155155
Result := Max(
156156
Floor(Center - (Width / 2)),
157-
Floor(Center - ((alignment.MaxWidth - 1) / 2))
157+
Floor(Center - ((alignment.Center.MaxWidth - 1) / 2))
158158
);
159159
end else
160160
Result := Round(alignment.Left.Method() + alignment.Left.Offset);
@@ -181,7 +181,7 @@ begin
181181
TerminateScript();
182182
end;
183183

184-
if (alignment.MaxWidth > 0) then
184+
if (alignment.Center.MaxWidth > 0) then
185185
begin
186186
Left := alignment.Left.Method() + alignment.Left.Offset;
187187
Right := alignment.Right.Method() + alignment.Right.Offset;
@@ -191,7 +191,7 @@ begin
191191

192192
Result := Min(
193193
Floor(Center + (Width / 2)),
194-
Floor(Center + ((alignment.MaxWidth - 1) / 2))
194+
Floor(Center + ((alignment.Center.MaxWidth - 1) / 2))
195195
);
196196
end else
197197
Result := Round(alignment.Right.Method() + alignment.Right.Offset);
@@ -218,7 +218,7 @@ begin
218218
TerminateScript();
219219
end;
220220

221-
if (alignment.MaxHeight > 0) then
221+
if (alignment.Center.MaxHeight > 0) then
222222
begin
223223
Top := alignment.Top.Method() + alignment.Top.Offset;
224224
Bottom := alignment.Bottom.Method() + alignment.Bottom.Offset;
@@ -228,7 +228,7 @@ begin
228228

229229
Result := Max(
230230
Floor(Center - (Height / 2)),
231-
Floor(Center - ((alignment.MaxHeight - 1) / 2))
231+
Floor(Center - ((alignment.Center.MaxHeight - 1) / 2))
232232
);
233233
end else
234234
Result := Round(alignment.Top.Method() + alignment.Top.Offset);
@@ -255,7 +255,7 @@ begin
255255
TerminateScript();
256256
end;
257257

258-
if (alignment.MaxHeight > 0) then
258+
if (alignment.Center.MaxHeight > 0) then
259259
begin
260260
Top := alignment.Top.Method() + alignment.Top.Offset;
261261
Bottom := alignment.Bottom.Method() + alignment.Bottom.Offset;
@@ -265,7 +265,7 @@ begin
265265

266266
Result := Min(
267267
Floor(Center + (Height / 2)),
268-
Floor(Center + ((alignment.MaxHeight - 1) / 2))
268+
Floor(Center + ((alignment.Center.MaxHeight - 1) / 2))
269269
);
270270
end else
271271
Result := Round(alignment.Bottom.Method() + alignment.Bottom.Offset);

0 commit comments

Comments
 (0)