Browse Source

Print glitch name in upper left corner

Yann Weber 5 years ago
parent
commit
8f794456b2
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      yaglitch.asm

+ 5
- 2
yaglitch.asm View File

@@ -124,6 +124,8 @@ section .bss
124 124
 
125 125
 	ttf_font: resq 1
126 126
 
127
+	ttf_font_surf: resq 1
128
+
127 129
 	sdl_color: resd 1
128 130
 
129 131
 	fc_config: resq 1
@@ -526,11 +528,12 @@ dbg:
526 528
 	mov dword [sdl_color], 0xFFFFFFFF
527 529
 	mov rdi, [ttf_font]
528 530
 	mov rsi, glitch_name
529
-	mov rdx, sdl_color
531
+	mov rdx, [sdl_color]
530 532
 	call TTF_RenderText_Solid ; render text in surface
533
+	mov [ttf_font_surf], rax
531 534
 
532 535
 	; blit & flip text surface
533
-	mov rdi, [ttf_font]
536
+	mov rdi, [ttf_font_surf]
534 537
 	call blitflip_visu
535 538
 
536 539
 

Loading…
Cancel
Save