Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 484 → Rev 485

/programs/media/animage/trunk/animage.asm
21,6 → 21,7
dd parameters,0x0
 
 
include '..\..\..\macros.inc'
include 'giflib.inc'
include 'bmplib.inc'
include 'dialog.inc'
39,7 → 40,7
;--------------------------------------------------------
mov eax,40
mov ebx,1100111b
int 0x40
mcall
;---------------------------------------------------------
;-----------------------init data-------------------------
;---------------------------------------------------------
/programs/media/animage/trunk/cursors.inc
12,7 → 12,7
mov ebx, 4
mov ecx,brush_cursor
mov edx,1
int 0x40
mcall
 
mov ebx,[PointerToCursorsID]
mov [ebx],eax
22,7 → 22,7
mov ebx, 4
mov ecx,flood_fill_cursor
mov edx,1
int 0x40
mcall
 
mov ebx,[PointerToCursorsID]
mov [ebx],eax
32,7 → 32,7
mov ebx, 4
mov ecx,lastik_cursor
mov edx,1
int 0x40
mcall
 
mov ebx,[PointerToCursorsID]
mov [ebx],eax
43,7 → 43,7
mov ebx, 4
mov ecx,other_cursor
mov edx,1
int 0x40
mcall
 
 
mov ebx,[PointerToCursorsID]
54,7 → 54,7
mov ebx, 4
mov ecx,pencil_cursor
mov edx,1
int 0x40
mcall
 
 
mov ebx,[PointerToCursorsID]
65,7 → 65,7
mov ebx, 4
mov ecx,pipette_cursor
mov edx,1
int 0x40
mcall
 
mov ebx,[PointerToCursorsID]
mov [ebx],eax
75,7 → 75,7
mov ebx, 4
mov ecx,spray_cursor
mov edx,1
int 0x40
mcall
 
mov ebx,[PointerToCursorsID]
mov [ebx],eax
85,7 → 85,7
mov ebx, 4
mov ecx,zoom_cursor
mov edx,1
int 0x40
mcall
 
mov ebx,[PointerToCursorsID]
mov [ebx],eax
288,7 → 288,7
 
mov eax, 37
mov ebx, 5
int 0x40
mcall
 
no_change_cursor:
 
312,7 → 312,7
 
mov eax,37
mov ebx,6
int 0x40
mcall
 
add [PointerToCursorsID],4
 
/programs/media/animage/trunk/design.inc
217,7 → 217,7
shl ecx,16
add ebx,[line_size_x]
add ecx,[line_size_y]
int 0x40
mcall
ret
;----------------------------------------------------------
draw_conture:
303,17 → 303,17
mov ebx,[text_x]
shl ebx,16
add ebx,[text_y]
int 0x40
mcall
ret
;----------------------------------------------------------
draw_rectangle:
mov eax,13
int 0x40
mcall
ret
;------------------------
draw_line:
mov eax,38
int 0x40
mcall
ret
;----------------------------------------------------------
;lightlin 12508927
/programs/media/animage/trunk/dialog.inc
22,8 → 22,8
; Get my PID in dec format 4 bytes
mov eax,9
mov ebx,procinfo
mov ecx,-1
int 0x40
or ecx,-1
mcall
 
; convert eax bin to param dec
mov eax,dword [procinfo+30] ;offset of myPID
57,12 → 57,12
mov ebx,1 ; define IPC
mov ecx,path ; offset of area
mov edx,1024+16 ; size
int 0x40
mcall
 
; change wanted events list 7-bit IPC event
mov eax,40
mov ebx,01000111b
int 0x40
mcall
 
;
; STEP 3 run SYSTEM XTREE with parameters
70,7 → 70,7
 
mov eax,70
mov ebx,run_fileinfo
int 0x40
mcall
 
call redproc
 
78,7 → 78,7
getmesloop:
mov eax,23
mov ebx,50 ;0.5 sec
int 0x40
mcall
dec eax
jz mred
dec eax
92,7 → 92,7
mov ebx,procinfo
mov ecx,-1
mov eax,9
int 0x40
mcall
mov ebp,eax
 
loox:
99,7 → 99,7
mov eax,9
mov ebx,procinfo
mov ecx,ebp
int 0x40
mcall
mov eax,[DLGPID]
cmp [procinfo+30],eax ;IF Dialog find
je dlg_is_work ;jmp to dlg_is_work
124,15 → 124,15
jmp getmesloop
mkey:
mov eax,2
int 0x40 ; read (eax=2)
mcall ; read (eax=2)
jmp getmesloop
mbutton:
mov eax,17 ; get id
int 0x40
mcall
cmp ah,1 ; button id=1 ?
jne getmesloop
mov eax,-1 ; close this program
int 0x40
mcall
mgetmes:
 
; If dlg_pid_get then second message get jmp to still
234,7 → 234,7
mov eax,9
mov ebx,procinfo
mov ecx,-1
int 0x40
mcall
 
; convert eax bin to param dec
mov eax,dword [procinfo+30] ;offset of myPID
268,12 → 268,12
mov ebx,1 ; define IPC
mov ecx,path ; offset of area
mov edx,1024+16 ; size
int 0x40
mcall
 
; change wanted events list 7-bit IPC event
mov eax,40
mov ebx,01000111b
int 0x40
mcall
 
;
; STEP 3 run SYSTEM XTREE with parameters
281,7 → 281,7
 
mov eax,70
mov ebx,run_fileinfo
int 0x40
mcall
 
call redproc
 
289,7 → 289,7
getmesloop:
mov eax,23
mov ebx,50 ;0.5 sec
int 0x40
mcall
dec eax
jz mred
dec eax
303,7 → 303,7
mov ebx,procinfo
mov ecx,-1
mov eax,9
int 0x40
mcall
mov ebp,eax
 
loox:
310,7 → 310,7
mov eax,9
mov ebx,procinfo
mov ecx,ebp
int 0x40
mcall
mov eax,[DLGPID]
cmp [procinfo+30],eax ;IF Dialog find
je dlg_is_work ;jmp to dlg_is_work
335,15 → 335,15
jmp getmesloop
mkey:
mov eax,2
int 0x40 ; read (eax=2)
mcall ; read (eax=2)
jmp getmesloop
mbutton:
mov eax,17 ; get id
int 0x40
mcall
cmp ah,1 ; button id=1 ?
jne getmesloop
mov eax,-1 ; close this program
int 0x40
mcall
mgetmes:
 
; If dlg_pid_get then second message get jmp to still
/programs/media/animage/trunk/dialog2.inc
16,7 → 16,7
 
opros:
mov eax,10
int 0x40
mcall
 
cmp eax,1
je exit_cycle
25,7 → 25,7
jne opros
 
mov eax,2
int 0x40
mcall
shr eax,8
 
cmp eax,13
110,7 → 110,7
add ebx,2
add ecx,10
mov edx,0xffffff
int 0x40
mcall
mov eax,4
mov ebx,[string_x]
shl ebx,16
118,7 → 118,7
mov ecx,0
mov edx,string_
mov esi,[MaxSizeString]
int 0x40
mcall
ret
 
print_cursor:
132,7 → 132,7
add ebx,2
add ecx,8
mov edx,0xff6c58
int 0x40
mcall
ret
;----------------------------------------------------------
MinMaxCorrect:
/programs/media/animage/trunk/events.inc
3,7 → 3,7
;----------------------------------------------------------
event:
mov eax,10
int 0x40
mcall
ret
;---------------------------------------------------------
;---------------SOUND of EVENTS---------------------------
11,5 → 11,5
sound:
mov eax,55
mov ebx,eax
int 0x40
mcall
ret
/programs/media/animage/trunk/events_of_buttons.inc
21,7 → 21,7
no_finish_instrument_button:
 
mov eax,17
int 0x40
mcall
 
shr eax,8
 
31,8 → 31,8
mov eax,CursorsID
call delete_cursors
 
mov eax,-1
int 0x40
or eax,-1
mcall
 
no_exit:
 
/programs/media/animage/trunk/events_of_keys.inc
4,7 → 4,7
keys:
 
mov eax,2
int 0x40
mcall
shr eax,8
 
cmp eax,176
80,7 → 80,7
call delete_cursors
 
mov eax,-1
int 0x40
mcall
 
jmp still
 
/programs/media/animage/trunk/events_of_mouse.inc
297,7 → 297,7
 
mov eax,37
mov ebx,1
int 0x40
mcall
 
mov ebx,eax
shr eax,16
313,6 → 313,6
GetMouseClick:
mov eax,37
mov ebx,2
int 0x40
mcall
 
ret
/programs/media/animage/trunk/events_of_window.inc
6,7 → 6,7
mov eax,9
mov ebx,IPC_table
or ecx,-1
int 0x40
mcall
 
mov eax,[IPC_table+34]
mov ebx,[IPC_table+38]
54,7 → 54,7
 
mov eax,12
mov ebx,1
int 0x40
mcall
 
and eax,0
mov ebx,[Window_CordinatX]
66,7 → 66,7
mov edx,0x03aabbcc
mov esi,0x805080d0
mov edi,0x005080d0
int 0x40
mcall
 
call draw_panel
call PrintMousePos
84,7 → 84,7
 
mov eax,12
mov ebx,2
int 0x40
mcall
 
mov ecx,[k]
 
/programs/media/animage/trunk/files.inc
26,7 → 26,7
 
mov eax,70
mov ebx,file_information
int 0x40
mcall
 
ret
;-----------------------------------------------------------
55,7 → 55,7
 
mov eax,70
mov ebx,file_information
int 0x40
mcall
test eax,eax
jnz error_load_file
75,7 → 75,7
 
mov eax,70
mov ebx,file_information
int 0x40
mcall
 
error_load_file:
 
108,7 → 108,7
 
mov eax,70
mov ebx,file_information
int 0x40
mcall
 
ret
 
/programs/media/animage/trunk/icons.inc
24,7 → 24,7
add ebx,(1200*1000*3)+12
mov eax,7
mov ecx,417*65536+46
int 0x40
mcall
 
 
;main buttons of instrumnts
47,7 → 47,7
mov edx,[counter]
add edx,10
add edx,1000000000000000000000000000000b
int 0x40
mcall
 
 
add [Icon_X],22
77,7 → 77,7
mov edx,[counter]
add edx,40
add edx,1000000000000000000000000000000b
int 0x40
mcall
 
add [Icon_X],19
 
106,7 → 106,7
mov edx,[counter]
add edx,45
add edx,1000000000000000000000000000000b
int 0x40
mcall
 
add [Icon_X],19
 
130,7 → 130,7
add ecx,21
mov edx,51
add edx,1000000000000000000000000000000b
int 0x40
mcall
 
; button of color
mov [Icon_X],7+128+1
147,12 → 147,12
add ecx,21
mov edx,52
add edx,1000000000000000000000000000000b
int 0x40
mcall
 
mov eax,13
mov ebx,136*65536+20
mov ecx,65*65536+20
mov edx,[Color]
int 0x40
mcall
 
ret
/programs/media/animage/trunk/icons_instruments.inc
173,7 → 173,7
mov ebx,136*65536+20
mov ecx,65*65536+21
mov edx,[Color]
int 0x40
mcall
 
jmp still
no_pipetka:
489,7 → 489,7
shl ecx,16
add ebx,13
add ecx,13
int 0x40
mcall
add [x],15
cmp [x],20+15*32
jl no_new_line
510,7 → 510,7
jne no_keys
 
mov eax,2
int 0x40
mcall
 
no_keys:
 
517,7 → 517,7
cmp eax,3
jne no_buttons
mov eax,17
int 0x40
mcall
 
no_buttons:
 
566,7 → 566,7
 
mov eax,5
mov ebx,10
int 0x40
mcall
 
call drawwin
 
/programs/media/animage/trunk/init_data.inc
36,12 → 36,12
 
;mov eax,68
;mov ebx,11
;int 0x40
;mcall
 
;mov eax,68
;mov ebx,12
;mov ecx,60000
;int 0x40
;mcall
 
;mov [PointerToIcons],eax
 
/programs/media/animage/trunk/load_dlls.inc
9,7 → 9,7
mov ecx,eax
mov eax,68
mov ebx,19
int 0x40
mcall
 
ret
 
/programs/media/animage/trunk/memory.inc
13,7 → 13,7
add ecx,[ScreenPointer]
add ecx,(1200*1000)*3+50*(20*20*3)+500000+16000+0x4000
add ecx,[extended_memory]
int 0x40
mcall
 
test eax,eax
jz have_new_memory
/programs/media/animage/trunk/menu_instruments.inc
65,7 → 65,7
mov ecx,115*65536+14
mov edx,1000000000000000000000000000000b
add edx,1000
int 0x40
mcall
 
mov eax,8
mov ebx,177*65536+40
72,7 → 72,7
mov ecx,139*65536+14
mov edx,1000000000000000000000000000000b
add edx,1001
int 0x40
mcall
 
mov eax,8
mov ebx,175*65536+40
79,12 → 79,12
mov ecx,170*65536+15
mov edx,1000000000000000000000000000000b
add edx,1002
int 0x40
mcall
 
no_activate_space:
 
mov eax,10
int 0x40
mcall
 
cmp eax,1
je exit_new
93,7 → 93,7
jne no_activate_space
 
mov eax,17
int 0x40
mcall
shr eax,8
 
cmp eax,1000
155,7 → 155,7
mov ecx,170*65536+15
mov edx,11100000000000000000000000000000b
add edx,1002
int 0x40
mcall
 
mov eax,8
mov ebx,177*65536+40
162,7 → 162,7
mov ecx,139*65536+14
mov edx,11100000000000000000000000000000b
add edx,1001
int 0x40
mcall
 
mov eax,8
mov ebx,177*65536+40
169,7 → 169,7
mov ecx,115*65536+14
mov edx,11100000000000000000000000000000b
add edx,1000
int 0x40
mcall
 
;get memory for new picture
mov eax,[Picture_SizeX]
222,7 → 222,7
 
mov eax,40
mov ebx,100111b
int 0x40
mcall
 
mov eax,file_path
mov ebx,[ScreenPointer]
387,7 → 387,7
save_enter:
mov eax,40
mov ebx,100111b
int 0x40
mcall
 
call analizing_picture_to_palette
;eax => number of colors in picture
428,7 → 428,7
jne no_exit_program
 
mov eax,-1
int 0x40
mcall
 
no_exit_program:
 
/programs/media/animage/trunk/panel_engen.inc
5,7 → 5,7
;>>>>>>>>>>>>>>>>>>>>>>>>>>
mov eax,18
mov ebx,14
;int 0x40
;mcall
 
and [Panel_flag],0
;collision with text on panel
50,7 → 50,7
 
mov eax,18
mov ebx,14
;int 0x40
;mcall
 
call print_panel_menu
 
92,7 → 92,7
mov eax,8
mov edx,[counter]
add edx,11100000000000000000000000000000b
int 0x40
mcall
inc [counter]
 
cmp [counter],30
106,7 → 106,7
mov eax,8
mov edx,[counter]
add edx,11100000000000000000000000000000b
int 0x40
mcall
inc [counter]
 
cmp [counter],45
120,7 → 120,7
mov eax,8
mov edx,[counter]
add edx,11100000000000000000000000000000b
int 0x40
mcall
inc [counter]
 
cmp [counter],50
130,7 → 130,7
mov eax,8
mov edx,51
add edx,11100000000000000000000000000000b
int 0x40
mcall
 
 
;delit buttons of color
137,7 → 137,7
mov eax,8
mov edx,52
add edx,11100000000000000000000000000000b
int 0x40
mcall
 
pop [counter]
 
174,7 → 174,7
;ᣫ ¦¨¢ ­¨¥  ­¨¬ æ¨¨ >>>>>>>>>>>>>>>>>>
mov eax,18
mov ebx,14
;int 0x40
;mcall
 
menu_loop:
 
231,11 → 231,11
menu_still:
 
mov eax,10
int 0x40
mcall
mov eax,2
int 0x40
mcall
mov eax,17
int 0x40
mcall
 
call GetMouseClick
 
292,7 → 292,7
 
mov eax,5
mov ebx,15
int 0x40
mcall
 
push [counter]
pushad
356,7 → 356,7
shl edx,16
add edx,20+15+6+6
and esi,0
int 0x40
mcall
 
mov eax,47
mov ebx,4*65536
367,7 → 367,7
shl edx,16
add edx,20+15+6+18+1+6
and esi,0
int 0x40
mcall
 
popad
ret
/programs/media/animage/trunk/screen.inc
239,7 → 239,7
fps:
;mov eax,18
;mov ebx,14
;int 0x40
;mcall
 
mov eax,7
mov ebx,[ScreenPointer]
248,7 → 248,7
shl ecx,16
add ecx,edx
mov edx,8*65536+20+15+49+5+1
int 0x40
mcall
 
ret
;----------------------------------------------------------
/programs/media/animage/trunk/time.inc
4,7 → 4,7
Clock:
mov eax,26
mov ebx,9
int 0x40
mcall
mov [time],eax
 
ret