11,9 → 11,10 |
ret |
|
draw_icons: |
mov [Icon_X],ci_panel_x_pos+2 |
mov [Icon_Y],ci_panel_y_pos+3 |
|
mov [Icon_X],7 |
mov [Icon_Y],20+15+4 |
|
;draw panel picture |
mov edx,[Icon_X] |
shl edx,16 |
27,12 → 28,13 |
;main buttons of instrumnts |
|
and [counter],0 |
mov [Icon_X],ci_panel_x_pos+4 |
mov [Icon_X],9 |
mov [Icon_Y],21+15+4+1 |
|
main_buttons: |
|
mov ebx,[Icon_X] |
mov ecx,ci_panel_but_y1 |
mov ecx,[Icon_Y] |
dec ebx |
dec ecx |
shl ebx,16 |
55,12 → 57,13 |
;buttons of brushes(and lines width) |
and [counter],0 |
|
mov [Icon_X],ci_panel_x_pos+4 |
mov [Icon_X],8+1 |
mov [Icon_Y],20+15+4+25+1 |
|
next_button_brush: |
|
mov ebx,[Icon_X] |
mov ecx,ci_panel_but_y2 |
mov ecx,[Icon_Y] |
dec ebx |
dec ecx |
shl ebx,16 |
82,12 → 85,13 |
;buttons of zoom |
and [counter],0 |
|
mov [Icon_X],ci_panel_x_pos+159 |
mov [Icon_X],8+155+1 |
mov [Icon_Y],20+15+4+25+1 |
|
next_button_zoom: |
|
mov ebx,[Icon_X] |
mov ecx,ci_panel_but_y2 |
mov ecx,[Icon_Y] |
dec ebx |
dec ecx |
shl ebx,16 |
107,10 → 111,11 |
|
|
; button of palette |
mov [Icon_X],ci_panel_x_pos+108 |
mov [Icon_X],7+105+1 |
mov [Icon_Y],19+15+4+25+1 |
|
mov ebx,[Icon_X] |
mov ecx,ci_panel_but_y2-1 |
mov ecx,[Icon_Y] |
dec ebx |
dec ecx |
shl ebx,16 |
122,10 → 127,11 |
mcall SF_DEFINE_BUTTON |
|
; button of color |
mov [Icon_X],ci_panel_x_pos+131 |
mov [Icon_X],7+128+1 |
mov [Icon_Y],19+15+4+25+1 |
|
mov ebx,[Icon_X] |
mov ecx,ci_panel_but_y1-1 |
mov ecx,[Icon_Y] |
dec ebx |
dec ecx |
shl ebx,16 |
136,7 → 142,6 |
add edx,1000000000000000000000000000000b |
mcall SF_DEFINE_BUTTON |
|
mcall SF_DRAW_RECT, ((ci_panel_x_pos+130) shl 16)+21,\ |
((ci_panel_y_pos+28) shl 16)+21, [Color] |
mcall SF_DRAW_RECT, 136*65536+19,64*65536+19,[Color] |
|
ret |