forked from KolibriOS/kolibrios
Firework: fix and optimize window resizing
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user