Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6358 → Rev 6359

/programs/media/animage/trunk/events_of_buttons.inc
4,40 → 4,30
buttons:
 
cmp [Current_instrument],21
jne no_finish_instrument_button
 
jne @f
cmp [instrument_used],1
jne no_finish_instrument_button
 
jne @f
cmp [Activate_instrument],0
jne no_finish_instrument_button
 
jne @f
cmp [crossing],1
jne no_finish_instrument_button
 
jne @f
mov [finishing_crossing],1
call TakeButtonInstruments
@@:
 
no_finish_instrument_button:
mcall SF_GET_BUTTON
 
mov eax,17
mcall
 
shr eax,8
 
cmp eax,1
jne no_exit
 
mov eax,CursorsID
call delete_cursors
 
or eax,-1
mcall
 
mcall SF_TERMINATE_PROCESS
no_exit:
 
 
mov [Current_instrument],eax
call button_handler_main_menu
 
; set cursor for current instrument
pushad
48,8 → 38,6
call set_cursor
popad
 
 
 
cmp eax,10
jl still