ports/sh: fix fx_image rendering control race condition

This commit is contained in:
Lephenixnoir 2024-02-03 10:17:53 +01:00
parent 00f009e0c2
commit eeb392a833
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ print(segments)
# ..xx x.. | ..xx x..
alpha = image(IMAGE_MONO_ALPHA, 7, 7, b'\x38\x00\x00\x00\x38\x00\x00\x00\x7c\x00\x00\x00\x44\x00\x00\x00\xfe\x00\x00\x00\x92\x00\x00\x00\xfe\x00\x00\x00\xba\x00\x00\x00\xfe\x00\x00\x00\x92\x00\x00\x00\x7c\x00\x00\x00\x44\x00\x00\x00\x38\x00\x00\x00\x38\x00\x00\x00')
# Take graphics control again after the print()
dupdate()
dclear(C_WHITE)
drect(63, 0, 127, 63, C_BLACK)
dimage(10, 5, img)