|
@@ -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
|
|