end: correct alt+f4

git-svn-id: svn://kolibrios.org@2676 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2012-05-25 09:21:47 +00:00
parent 0043cec95f
commit d7c5d270dc

View File

@ -14,9 +14,7 @@ code
do_draw: do_draw:
mov al,12 ; eax=12 - tell os about redraw start mcall 12,1
mov bl,1
mcall
mov al,14 ; eax=14 - get screen max x & max y mov al,14 ; eax=14 - get screen max x & max y
mcall mcall
@ -47,16 +45,11 @@ do_draw:
pop ebx pop ebx
mcall mcall
xor edx,edx
mov al,8 mov al,8
inc edx mcall ,15 shl 16+87,17 shl 16+24,4,0xaa0044
mcall ,15 shl 16+87,17 shl 16+24,,0xaa0044 mcall ,118 shl 16+87,,2,0xbb7700
inc edx mcall ,15 shl 16+87,51 shl 16+24,3,0x8800
mcall ,118 shl 16+87,,,0xbb7700 mcall ,118 shl 16+87,,1,0x999999
inc edx
mcall ,15 shl 16+87,51 shl 16+24,,0x8800
inc edx
mcall ,118 shl 16+87,,,0x999999
mcall ,10 shl 16+200,88 shl 16+15,0x40000005 mcall ,10 shl 16+200,88 shl 16+15,0x40000005
mcall 38,27 shl 16 +193,102 shl 16 +102,0x000000dd mcall 38,27 shl 16 +193,102 shl 16 +102,0x000000dd
@ -83,9 +76,7 @@ do_draw:
mov edx,label6 mov edx,label6
mcall mcall
mov al,12 ;end of redraw mcall 12,2
mov ebx,2
mcall
still: still:
@ -117,7 +108,7 @@ still:
mcall mcall
xchg al,ah xchg al,ah
dec eax dec eax
jz power_off jz close_1
dec eax dec eax
jz restart_kernel jz restart_kernel
dec eax dec eax
@ -127,15 +118,15 @@ still:
; we have only one button left, this is close button ; we have only one button left, this is close button
; dec eax ; dec eax
; jnz still ; jnz still
power_off:
push 2
jmp mcall_and_close
close_1: close_1:
or eax,-1 or eax,-1
mcall mcall
power_off: restart:
push 2
jmp mcall_and_close
restart:
push 3 push 3
jmp mcall_and_close jmp mcall_and_close