Firework: fix and optimize window resizing
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 1m19s
Build system / Build (pull_request) Successful in 16m28s

This commit is contained in:
2025-03-16 23:02:41 +02:00
committed by Max Logaev
parent 78de535233
commit f1e958af41

View File

@@ -254,10 +254,7 @@ init_palette:
;init buffer ;init buffer
mcall SF_SYS_MISC,SSF_HEAP_INIT mcall SF_SYS_MISC,SSF_HEAP_INIT
mov ecx,[Screen_W] call OnResize
imul ecx,[Screen_H]
mcall SF_SYS_MISC,SSF_MEM_ALLOC
mov [buffer],eax
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Main Functions ; Main Functions
@@ -281,6 +278,7 @@ OnResize:
imul ecx,[Screen_H] imul ecx,[Screen_H]
;ecx = SCREEN_W*SCREEN_H ;ecx = SCREEN_W*SCREEN_H
mcall SF_SYS_MISC,SSF_MEM_REALLOC,,[buffer] mcall SF_SYS_MISC,SSF_MEM_REALLOC,,[buffer]
mov [buffer],eax
ret ret
align 4 align 4