forked from KolibriOS/kolibrios
small fix color button,
remove old code git-svn-id: svn://kolibrios.org@6360 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a4fbf36547
commit
fbd634739b
@ -32,13 +32,8 @@
|
|||||||
use32
|
use32
|
||||||
org 0x0
|
org 0x0
|
||||||
db 'MENUET01'
|
db 'MENUET01'
|
||||||
dd 0x1
|
dd 1, START, IM_END, I_END
|
||||||
dd START
|
dd stacktop, file_path, cur_dir_path
|
||||||
dd IM_END
|
|
||||||
dd I_END
|
|
||||||
dd stacktop
|
|
||||||
dd file_path ;parameters
|
|
||||||
dd cur_dir_path
|
|
||||||
|
|
||||||
include '../../../config.inc' ;for nightbuild
|
include '../../../config.inc' ;for nightbuild
|
||||||
include '../../../macros.inc'
|
include '../../../macros.inc'
|
||||||
@ -47,6 +42,7 @@ include '../../../KOSfuncs.inc'
|
|||||||
include '../../../develop/libraries/box_lib/load_lib.mac'
|
include '../../../develop/libraries/box_lib/load_lib.mac'
|
||||||
include '../../../dll.inc'
|
include '../../../dll.inc'
|
||||||
include '../../../libio.inc'
|
include '../../../libio.inc'
|
||||||
|
;include '../../../develop/libraries/libs-dev/libimg/libimg.inc'
|
||||||
|
|
||||||
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
|
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
|
||||||
|
|
||||||
@ -141,8 +137,7 @@ include 'init_data.inc'
|
|||||||
call copy_str_1
|
call copy_str_1
|
||||||
@@:
|
@@:
|
||||||
;OpenDialog initialisation
|
;OpenDialog initialisation
|
||||||
push dword OpenDialog_data
|
stdcall [OpenDialog_Init], OpenDialog_data
|
||||||
call [OpenDialog_Init]
|
|
||||||
;---------------------------------------------------------------------
|
;---------------------------------------------------------------------
|
||||||
red:
|
red:
|
||||||
call drawwin
|
call drawwin
|
||||||
@ -208,7 +203,7 @@ include 'width_lines.inc'
|
|||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
;-------------------ICON"S picture-------------------------
|
;-------------------ICON"S picture-------------------------
|
||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
dd 0
|
align 4
|
||||||
panel_picture:
|
panel_picture:
|
||||||
file 'panel_buttons.png'
|
file 'panel_buttons.png'
|
||||||
.end:
|
.end:
|
||||||
@ -284,12 +279,7 @@ Icon_X rd 1
|
|||||||
Icon_Y rd 1
|
Icon_Y rd 1
|
||||||
counter rd 1
|
counter rd 1
|
||||||
counter2 rd 1
|
counter2 rd 1
|
||||||
Icon_text_x rd 1
|
|
||||||
Icon_text_y rd 1
|
|
||||||
Panel_flag rb 1
|
Panel_flag rb 1
|
||||||
counter_menu rd 1
|
|
||||||
menu_coordinat_x rd 1
|
|
||||||
menu_size_x rd 1
|
|
||||||
menu_counter rd 1
|
menu_counter rd 1
|
||||||
counter_11 rd 1
|
counter_11 rd 1
|
||||||
number_panel rd 1
|
number_panel rd 1
|
||||||
|
@ -200,88 +200,29 @@ exit_colors:
|
|||||||
call draw_line
|
call draw_line
|
||||||
ret
|
ret
|
||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
rectangle:
|
;input:
|
||||||
no_light_rectangle:
|
; eax - rectangle X
|
||||||
mov [line_x],eax
|
; ebx - rectangle Y
|
||||||
mov [line_y],ebx
|
; ecx - point X
|
||||||
mov [line_size_x],ecx
|
; edx - point Y
|
||||||
mov [line_size_y],edx
|
; esi - rectangle size X
|
||||||
mov edx,esi
|
; edi - rectangle size Y
|
||||||
mov ebx,[line_x]
|
;output:
|
||||||
mov ecx,[line_y]
|
; eax - 1 if point in rectangle
|
||||||
shl ebx,16
|
|
||||||
shl ecx,16
|
|
||||||
add ebx,[line_size_x]
|
|
||||||
add ecx,[line_size_y]
|
|
||||||
mcall SF_DRAW_RECT
|
|
||||||
ret
|
|
||||||
;----------------------------------------------------------
|
|
||||||
draw_conture:
|
|
||||||
mov [line_x],eax
|
|
||||||
mov [line_y],ebx
|
|
||||||
mov [line_size_x],ecx
|
|
||||||
mov [line_size_y],edx
|
|
||||||
mov [color_line1],0xaeabae
|
|
||||||
;line 1
|
|
||||||
mov edx,[color_line1]
|
|
||||||
mov ebx,[line_x]
|
|
||||||
mov ecx,[line_y]
|
|
||||||
shl ebx,16
|
|
||||||
shl ecx,16
|
|
||||||
add ebx,[line_x]
|
|
||||||
add ecx,[line_y]
|
|
||||||
add ebx,[line_size_x]
|
|
||||||
call draw_line
|
|
||||||
;line 2
|
|
||||||
mov edx,[color_line1]
|
|
||||||
mov ebx,[line_x]
|
|
||||||
mov ecx,[line_y]
|
|
||||||
shl ebx,16
|
|
||||||
shl ecx,16
|
|
||||||
add ebx,[line_x]
|
|
||||||
add ecx,[line_y]
|
|
||||||
add ecx,[line_size_y]
|
|
||||||
call draw_line
|
|
||||||
;line 3
|
|
||||||
mov edx,[color_line1]
|
|
||||||
mov ebx,[line_x]
|
|
||||||
mov ecx,[line_y]
|
|
||||||
add ecx,[line_size_y]
|
|
||||||
shl ebx,16
|
|
||||||
shl ecx,16
|
|
||||||
add ebx,[line_x]
|
|
||||||
add ecx,[line_y]
|
|
||||||
add ebx,[line_size_x]
|
|
||||||
add ecx,[line_size_y]
|
|
||||||
call draw_line
|
|
||||||
;line 4
|
|
||||||
mov edx,[color_line1]
|
|
||||||
mov ebx,[line_x]
|
|
||||||
mov ecx,[line_y]
|
|
||||||
add ebx,[line_size_x]
|
|
||||||
shl ebx,16
|
|
||||||
shl ecx,16
|
|
||||||
add ebx,[line_x]
|
|
||||||
add ecx,[line_y]
|
|
||||||
add ebx,[line_size_x]
|
|
||||||
add ecx,[line_size_y]
|
|
||||||
call draw_line
|
|
||||||
ret
|
|
||||||
;----------------------------------------------------------
|
|
||||||
columnus:
|
columnus:
|
||||||
sub eax,ecx
|
sub eax,ecx
|
||||||
jns no_columnus
|
jns @f
|
||||||
neg eax
|
neg eax
|
||||||
cmp eax,esi
|
cmp eax,esi
|
||||||
ja no_columnus
|
ja @f
|
||||||
sub ebx,edx
|
sub ebx,edx
|
||||||
jns no_columnus
|
jns @f
|
||||||
neg ebx
|
neg ebx
|
||||||
cmp ebx,edi
|
cmp ebx,edi
|
||||||
ja no_columnus
|
ja @f
|
||||||
mov eax,1
|
mov eax,1
|
||||||
jmp columnus_true
|
jmp columnus_true
|
||||||
no_columnus:
|
@@:
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
columnus_true:
|
columnus_true:
|
||||||
ret
|
ret
|
||||||
|
@ -125,7 +125,7 @@ draw_icons:
|
|||||||
mov [Icon_X],ci_panel_x_pos+131
|
mov [Icon_X],ci_panel_x_pos+131
|
||||||
|
|
||||||
mov ebx,[Icon_X]
|
mov ebx,[Icon_X]
|
||||||
mov ecx,ci_panel_but_y1-1
|
mov ecx,ci_panel_but_y2-1
|
||||||
dec ebx
|
dec ebx
|
||||||
dec ecx
|
dec ecx
|
||||||
shl ebx,16
|
shl ebx,16
|
||||||
|
Loading…
Reference in New Issue
Block a user