Rev 7929 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7929 | Rev 7986 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | ret |
32 | ret |
Line 33... | Line 33... | ||
33 | 33 | ||
34 | ;настройка точек при открытии изображения |
34 | ;настройка точек при открытии изображения |
35 | ;(точки ставятся по углам изображения) |
35 | ;(точки ставятся по углам изображения) |
36 | align 4 |
36 | align 4 |
37 | proc points_init_2 uses eax ecx edx edi, ot_x:dword |
37 | proc points_init_2 uses eax ecx edx edi, ot_x:dword, ot_y:dword |
38 | xor eax,eax |
38 | mov eax,[ot_y] |
39 | mov edi,sel_pt |
39 | mov edi,sel_pt |
40 | mov edx,[ot_x] |
40 | mov edx,[ot_x] |
41 | mov [edi+point2d.x],edx ;1 |
41 | mov [edi+point2d.x],edx ;1 |
42 | mov [edi+point2d.y],eax ;1 |
42 | mov [edi+point2d.y],eax ;1 |
Line 46... | Line 46... | ||
46 | mov [edi+point2d.x],ecx ;2 |
46 | mov [edi+point2d.x],ecx ;2 |
47 | mov [edi+point2d.y],eax ;2 |
47 | mov [edi+point2d.y],eax ;2 |
48 | add edi,sizeof.point2d |
48 | add edi,sizeof.point2d |
49 | mov [edi+point2d.x],ecx ;3 |
49 | mov [edi+point2d.x],ecx ;3 |
50 | mov ecx,[buf_i0.h] |
50 | mov ecx,[buf_i0.h] |
- | 51 | sub ecx,eax |
|
51 | mov [edi+point2d.y],ecx ;3 |
52 | mov [edi+point2d.y],ecx ;3 |
52 | add edi,sizeof.point2d |
53 | add edi,sizeof.point2d |
53 | mov [edi+point2d.x],edx ;4 |
54 | mov [edi+point2d.x],edx ;4 |
54 | mov [edi+point2d.y],ecx ;4 |
55 | mov [edi+point2d.y],ecx ;4 |
55 | call points_update_prop |
56 | call points_update_prop |