Skip to content

Commit c3302ea

Browse files
is this right
1 parent f3a2417 commit c3302ea

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/graphx/graphx.asm

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,6 @@ gfx_Begin:
239239
; arg0: bpp mode to start in
240240
; Returns:
241241
; None
242-
ld hl,_LargeFontJump
243-
ld a,(hl)
244-
or a,a
245-
jr nz,.alreadyset
246-
ld (UseLargeFont),a ; store the jump offset for later
247-
.alreadyset:
248-
ld (hl),0 ; jump nowhere if false
249242
call _boot_ClearVRAM ; clear the screen
250243
lcdGraphxMode := lcdWatermark+lcdIntFront+lcdPwr+lcdBgr+lcdBpp8
251244
ld de,lcdGraphxMode
@@ -3020,8 +3013,7 @@ gfx_SetTextScale:
30203013
or a,a
30213014
ret z ; null check
30223015
ld (_TextHeightScale),a
3023-
ld (hl),0 ; modified at boot to SM the jump
3024-
UseLargeFont := $-1
3016+
ld (hl),_PrintLargeFont - _PrintNormalFont
30253017
ret
30263018
.bothone:
30273019
ld (hl),a ; store a 0, which means no (literal) jump
@@ -3110,7 +3102,7 @@ _TextYPos := $-3
31103102
smcByte _TextHeight
31113103
wait_quick
31123104
jr _PrintLargeFont ; SMC the jump
3113-
_LargeFontJump := $-1
3105+
_PrintNormalFont:
31143106
.loop:
31153107
ld c,(hl) ; c = 8 pixels
31163108
add iy,de ; get draw location

0 commit comments

Comments
 (0)