Rev 6369 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6369 | Rev 6371 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | mov ebx,eax |
6 | mov ebx,eax |
7 | mov edi,[ScreenPointer] |
7 | mov edi,[ScreenPointer] |
8 | add edi,mem_screen |
8 | add edi,mem_screen |
9 | stdcall [img_to_rgb2], ebx,edi ;преобразуем изображение к формату rgb |
9 | stdcall [img_to_rgb2], ebx,edi ;преобразуем изображение к формату rgb |
10 | stdcall [img_destroy], ebx ;удаляем временный буфер с параметрами изображения |
10 | stdcall [img_destroy], ebx ;удаляем временный буфер с параметрами изображения |
- | 11 | ||
- | 12 | stdcall [img_decode], panel_zoom, panel_zoom.end-panel_zoom, 0 |
|
- | 13 | mov ebx,eax |
|
- | 14 | add edi,mem_panel_but |
|
- | 15 | stdcall [img_to_rgb2], ebx,edi |
|
- | 16 | stdcall [img_destroy], ebx |
|
11 | ret |
17 | ret |
Line 12... | Line 18... | ||
12 | 18 | ||
13 | draw_icons: |
19 | draw_icons: |
14 | mov [Icon_X],ci_panel_x_pos+2 |
20 | mov [Icon_X],ci_panel_x_pos+2 |
Line 21... | Line 27... | ||
21 | mov ebx,[ScreenPointer] |
27 | mov ebx,[ScreenPointer] |
22 | add ebx,mem_screen |
28 | add ebx,mem_screen |
23 | mov ecx,417*65536+46 |
29 | mov ecx,417*65536+46 |
24 | mcall SF_PUT_IMAGE |
30 | mcall SF_PUT_IMAGE |
Line -... | Line 31... | ||
- | 31 | ||
- | 32 | ;draw active zoom button |
|
- | 33 | add ebx,mem_panel_but |
|
- | 34 | xor eax,eax |
|
- | 35 | cmp [k],1 |
|
- | 36 | je .end_calc |
|
- | 37 | inc eax |
|
- | 38 | cmp [k],2 |
|
- | 39 | je @f |
|
- | 40 | inc eax |
|
- | 41 | cmp [k],3 |
|
- | 42 | je @f |
|
- | 43 | inc eax |
|
- | 44 | cmp [k],4 |
|
- | 45 | je @f |
|
- | 46 | inc eax |
|
- | 47 | cmp [k],8 |
|
- | 48 | je @f |
|
- | 49 | inc eax |
|
- | 50 | cmp [k],16 |
|
- | 51 | je @f |
|
- | 52 | inc eax |
|
- | 53 | @@: |
|
- | 54 | mov edx,eax |
|
- | 55 | imul edx,18*21*3 |
|
- | 56 | add ebx,edx |
|
- | 57 | .end_calc: |
|
- | 58 | mov edx,eax |
|
- | 59 | imul edx,18+1 |
|
- | 60 | add edx,ci_panel_zoom_x-1 |
|
- | 61 | shl edx,16 |
|
- | 62 | add edx,ci_panel_but_y2-2 |
|
- | 63 | mov ecx,18*65536+21 |
|
Line 25... | Line 64... | ||
25 | 64 | mcall SF_PUT_IMAGE |
|
Line 26... | Line 65... | ||
26 | 65 | ||
27 | ;main buttons of instrumnts |
66 | ;main buttons of instrumnts |
Line 80... | Line 119... | ||
80 | 119 | ||
81 | 120 | ||
Line 82... | Line 121... | ||
82 | ;buttons of zoom |
121 | ;buttons of zoom |
Line 83... | Line 122... | ||
83 | and [counter],0 |
122 | and [counter],0 |
Line 84... | Line 123... | ||
84 | 123 | ||
85 | mov [Icon_X],ci_panel_x_pos+178 |
124 | mov [Icon_X],ci_panel_x_pos+ci_panel_zoom_x |