Skip to content

Commit 0728523

Browse files
olafkryusveikkos
authored andcommitted
Fix invisible background behaviour for Custom Cup record screen
1 parent 389e8ff commit 0728523

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

SJ3.PAS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3861,7 +3861,7 @@ begin
38613861
if (osakilpailu=12) then sorthighs(2);
38623862
if (final) then sorthighs(0);
38633863
end;
3864-
1 : if (cscreen) then NewCRecordScreen(SetFile,top[42],oldhi,sortby);
3864+
1 : if (cscreen) then NewCRecordScreen(SetFile,top[42],oldhi,sortby,InvBack);
38653865
2 : if (final) then sorthighs(2);
38663866
end;
38673867

SJ3INFO.PAS

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ procedure selectcustomhills(var sortby:byte;var CupHills:integer;
6464
var HillOrder : array of integer;
6565
var SetFile:string);
6666

67-
procedure newcrecordscreen(SetFile:string;NewHi,OldHi:Hiscore;sortby:byte);
67+
procedure newcrecordscreen(SetFile:string;NewHi,OldHi:Hiscore;sortby:byte;InvBack:boolean);
6868

6969
procedure CallSendme(version,regname,regnumber:string;
7070
Today:date;Now:Time; vcode:byte);
@@ -306,11 +306,18 @@ end;
306306

307307

308308

309-
procedure newcrecordscreen(SetFile:string;NewHi,OldHi:Hiscore;sortby:byte);
309+
procedure newcrecordscreen(SetFile:string;NewHi,OldHi:Hiscore;sortby:byte;InvBack:boolean);
310310
var tempb : boolean;
311311
{ tempch : char; }
312312
str1 : string;
313313
begin
314+
if (InvBack) then
315+
begin
316+
SiirraStandardiPaletti;
317+
TallennaAlkuosa(0);
318+
SavytaPaletti(0,40);
319+
AsetaPaletti;
320+
end;
314321

315322
tempb:=true;
316323
if (Oldhi.score<=0) then tempb:=false;
@@ -348,6 +355,12 @@ begin
348355

349356
waitforkey;
350357

358+
if (InvBack) then
359+
begin
360+
TakaisinAlkuosa(0);
361+
AsetaPaletti;
362+
end;
363+
351364
end;
352365

353366

0 commit comments

Comments
 (0)