summaryrefslogtreecommitdiff
path: root/src/engine/home.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2019-07-03 19:00:28 +0200
committerxCrystal <rgr.crystal@gmail.com>2019-07-03 19:00:28 +0200
commite91b56ada6dda8576d64821bb51793a18a62b17b (patch)
treef16923321b87d7efcfde06f8354e10f7d6311a19 /src/engine/home.asm
parent880d8b42d8013dd2fc1f4a7424f9621c137cee6b (diff)
Fix/consolidate some function names
Diffstat (limited to 'src/engine/home.asm')
-rw-r--r--src/engine/home.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/engine/home.asm b/src/engine/home.asm
index cab683d..0101028 100644
--- a/src/engine/home.asm
+++ b/src/engine/home.asm
@@ -5675,7 +5675,7 @@ DrawLabeledTextBox: ; 1e00 (0:1e00)
pop hl
call CopyText
ld hl, wc000 + 3
- call GetTextSizeInTiles
+ call GetTextLengthInTiles
ld l, e
ld h, d
; white tile after the text
@@ -6771,14 +6771,14 @@ CaseHalfWidthLetter: ; 23b1 (0:23b1)
; iterates over text at hl until TX_END is found, and sets wFontWidth to
; FULL_WIDTH if the first character is TX_HALFWIDTH
; returns:
-; b = size of text in tiles
-; c = size of text in bytes
+; b = length of text in tiles
+; c = length of text in bytes
; a = -b
-GetTextSizeInTiles: ; 23c1 (0:23c1)
+GetTextLengthInTiles: ; 23c1 (0:23c1)
ld a, [hl]
cp TX_HALFWIDTH
jr nz, .full_width
- call GetTextSizeInHalfTiles
+ call GetTextLengthInHalfTiles
; return a = - ceil(b/2)
inc b
srl b
@@ -6792,10 +6792,10 @@ GetTextSizeInTiles: ; 23c1 (0:23c1)
; iterates over text at hl until TX_END is found
; returns:
-; b = size of text in half-tiles
-; c = size of text in bytes
+; b = length of text in half-tiles
+; c = length of text in bytes
; a = -b
-GetTextSizeInHalfTiles: ; 23d3 (0:23d3)
+GetTextLengthInHalfTiles: ; 23d3 (0:23d3)
push hl
push de
lb bc, $00, $00