gui2: use bigcall (code becomes too large for rjmp/rcall).
This commit is contained in:
@@ -176,7 +176,7 @@ ValueLabel_OnGetDefaultWidth:
|
||||
; @clobbers any, !Y
|
||||
|
||||
ValueLabel_OnGetDefaultHeight:
|
||||
rcall Widget_GetCharHeight ; R16=char height
|
||||
bigcall Widget_GetCharHeight ; R16=char height
|
||||
mov r18, r16
|
||||
clr r19
|
||||
bigcall Widget_AddOuterStyleBorders ; (r20, r21)
|
||||
@@ -214,12 +214,12 @@ valueLabelAlignTextXY:
|
||||
rcall valueLabelCalcTextWidth ; X=ptr to text in SDRAM, R13:R12=text width (r16, r17, r18)
|
||||
push xl
|
||||
push xh
|
||||
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)
|
||||
pop xh
|
||||
pop xl
|
||||
ret
|
||||
@@ -240,7 +240,7 @@ valueLabelCalcTextWidth:
|
||||
ldd r21, Y+VLABEL_OFFS_VALUE_HI
|
||||
ldd r24, Y+VLABEL_OFFS_POSTKOMMADIGITS
|
||||
bigcall IntToAscii ; X=pointer to text
|
||||
rcall Widget_GetCharWidth ; R16=char width
|
||||
bigcall Widget_GetCharWidth ; R16=char width
|
||||
mov r18, r16
|
||||
bigcall Widget_CalcStringWidthSDRAM ; r13:r12=size (r16)
|
||||
valueLabelCalcTextWidth_ret:
|
||||
|
||||
Reference in New Issue
Block a user