gui2: use bigcall (code becomes too large for rjmp/rcall).

This commit is contained in:
Martin Preuss
2026-03-21 08:29:06 +01:00
parent 5e3a8f444a
commit 69a16c4c0f
4 changed files with 13 additions and 13 deletions

View File

@@ -180,7 +180,7 @@ Label_OnGetDefaultWidth:
; @clobbers any, !Y
Label_OnGetDefaultHeight:
rcall Widget_GetCharHeight ; R16=char height
bigcall Widget_GetCharHeight ; R16=char height
mov r18, r16
clr r19
bigcall Widget_AddOuterStyleBorders ; (r20, r21)
@@ -217,12 +217,12 @@ labelWriteText_ret:
labelAlignTextXY:
rcall labelCalcTextWidth ; Z=text, R13:R12=text width (r16, r17, r18)
rcall Widget_PackContentX ; R5:R4=X (r17, r18, r19, r20, r21)
bigcall Widget_PackContentX ; R5:R4=X (r17, r18, r19, r20, r21)
rcall Widget_GetCharHeight ; R16=char height
bigcall Widget_GetCharHeight ; R16=char height
mov r12, r16
clr r13
rcall Widget_PackContentY ; R7:R6=Y (r17, r18, r19, r20, r21)
bigcall Widget_PackContentY ; R7:R6=Y (r17, r18, r19, r20, r21)
ret
; @end
@@ -245,7 +245,7 @@ labelCalcTextWidth:
bigcall RES_GetRessource ; (r16, r17, r18)
brcc labelCalcTextWidth_ret
rcall Widget_GetCharWidth ; R16=char width
bigcall Widget_GetCharWidth ; R16=char width
mov r18, r16
bigcall Widget_CalcStringWidthFLASH ; r13:r12=size (r16)
sec