Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4215 → Rev 4214

/programs/system/end/light/data.inc
90,7 → 90,7
aini_set_int db 'ini_set_int',0
;---------------------------------------------------------------------
 
check1 check_box2 20 shl 16 +8,96 shl 16 +8,6,0xffffff,0,0,label4
check1 check_box2 20 shl 16 +8,93 shl 16 +8,6,0xffffff,0,0,label4
 
hide db 'h',0
asettings db 'settings',0
/programs/system/end/light/end.asm
42,11 → 42,11
 
invoke ini_get_int,ini_file,asettings,aautosave,0
mov [autosave],eax
dec eax
jnz @f
cmp eax,1
jne @f
bts dword [check1.flags],1
@@:
mcall 40,0x80000027
mcall 40,0x00000027
redraw:
call draw_window
still:
74,19 → 74,17
mcall ;eax=2 - get key code
mov al,ah
cmp al,13
je restart
jz restart
cmp al,19
je checkbox
jz checkbox
cmp al,27
jz close
cmp al,180
je restart_kernel
jz restart_kernel
cmp al,181
je power_off
cmp al,27
jne still
jz power_off
jmp still
 
close:
mcall -1
 
button:
mcall 17 ;eax=17 - get pressed button id
xchg al,ah
122,7 → 120,7
mov ecx,eax
@@:
push ecx
mcall 23,100
mcall 23,50
dec eax
jnz no_red
call draw_window
136,6 → 134,9
pop ecx
mcall 18,9
 
close:
mcall -1
 
checkbox:
btc dword [check1.flags],1
jc .1
152,8 → 153,7
mov al,12
mcall ,1
 
mov al,14
mcall ;eax=14 - get screen max x & max y
mcall 14 ;eax=14 - get screen max x & max y
movzx ecx,ax
shr eax,17
shl eax,16
176,20 → 176,19
mcall , ,<54,27>,1,0x777777
mcall ,<16,90> , ,3,0x007700
 
mov al,4
mcall ,<27,24> ,0x90ffffff,label2 ;eax=4 - write text
mcall ,<23,58> , ,label3
mcall ,<47,37> , ,label5
mcall ,<41,71> , ,label6
 
push dword check1
call [check_box_draw2]
 
mcall 4,<27,24> ,0x90ffffff,label2 ;eax=4 - write text
mcall ,<23,58> , ,label3
mcall ,<47,37> ,0x90ffffff,label5
mcall ,<44,71> , ,label6
 
mov al,12
mcall ,2
ret
;---------------------------------------------------------------------
;data
 
data
include 'data.inc'
 
;---------------------------------------------------------------------