forked from KolibriOS/kolibrios
movback: rolled up fix
git-svn-id: svn://kolibrios.org@2094 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
f9e03482b6
commit
8c036186af
@ -1,5 +1,5 @@
|
|||||||
include "lang.inc"
|
include "lang.inc"
|
||||||
include "..\..\..\macros.inc"
|
include "../../../macros.inc"
|
||||||
|
|
||||||
WND_SIZE_X = 320
|
WND_SIZE_X = 320
|
||||||
WND_SIZE_Y = 200
|
WND_SIZE_Y = 200
|
||||||
@ -32,6 +32,8 @@ CODE
|
|||||||
mcall
|
mcall
|
||||||
|
|
||||||
.draw_screen:
|
.draw_screen:
|
||||||
|
test [proc_info.wnd_state], 0x04
|
||||||
|
jnz .event_loop
|
||||||
add word [ver_counter],VC_DELTA
|
add word [ver_counter],VC_DELTA
|
||||||
add word [hor_counter],HC_DELTA
|
add word [hor_counter],HC_DELTA
|
||||||
call handle_animation
|
call handle_animation
|
||||||
@ -43,6 +45,7 @@ CODE
|
|||||||
jmp .event_loop
|
jmp .event_loop
|
||||||
|
|
||||||
.paint_window:
|
.paint_window:
|
||||||
|
mcall 9,proc_info,-1
|
||||||
mov eax,12
|
mov eax,12
|
||||||
mov ebx,1
|
mov ebx,1
|
||||||
mcall
|
mcall
|
||||||
@ -54,12 +57,15 @@ CODE
|
|||||||
mov edi,title
|
mov edi,title
|
||||||
mcall
|
mcall
|
||||||
|
|
||||||
|
test [proc_info.wnd_state], 0x04
|
||||||
|
jnz @f
|
||||||
|
|
||||||
mov eax,7
|
mov eax,7
|
||||||
mov ebx,virtual_screen_32
|
mov ebx,virtual_screen_32
|
||||||
mov ecx,(WND_SIZE_X shl 16)+WND_SIZE_Y
|
mov ecx,(WND_SIZE_X shl 16)+WND_SIZE_Y
|
||||||
xor edx,edx
|
xor edx,edx
|
||||||
mcall
|
mcall
|
||||||
|
@@:
|
||||||
mov eax,12
|
mov eax,12
|
||||||
mov ebx,2
|
mov ebx,2
|
||||||
mcall
|
mcall
|
||||||
@ -177,4 +183,6 @@ UDATA
|
|||||||
sinetable:
|
sinetable:
|
||||||
rw 256
|
rw 256
|
||||||
|
|
||||||
MEOS_APP_END
|
proc_info process_information
|
||||||
|
|
||||||
|
MEOS_APP_END
|
||||||
|
Loading…
Reference in New Issue
Block a user