Fix logic for flag

git-svn-id: svn://kolibrios.org@3352 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2013-03-08 11:01:51 +00:00
parent 83754e005a
commit 6501c791a6

View File

@ -83,11 +83,11 @@ load_libraries l_libs_start,end_l_libs
jmp .OpenDialog jmp .OpenDialog
@@: @@:
call locLoadFile call locLoadFile
xor dword [wFlags],1 xor dword [wFlags],1
.OpenDialog: .OpenDialog:
;OpenDialog initialisation ;OpenDialog initialisation
push dword OpenDialog_data push dword OpenDialog_data
call [OpenDialog_Init] call [OpenDialog_Init]
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
mcall 40,0x27 mcall 40,0x27
red: red:
@ -178,16 +178,16 @@ ActionOpen:
jnz still jnz still
mov [OpenDialog_data.type],0 ; open mov [OpenDialog_data.type],0 ; open
call OpenDialog_Start_1 call OpenDialog_Start_1
jne .1 jne still
call locLoadFile call locLoadFile
call DrawBars call DrawBars
.1: .1:
xor dword [wFlags],1 xor dword [wFlags],1
jmp still jmp still
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
OpenDialog_Start_1: OpenDialog_Start_1:
push dword OpenDialog_data push dword OpenDialog_data
call [OpenDialog_Start] call [OpenDialog_Start]
cmp [OpenDialog_data.status],1 cmp [OpenDialog_data.status],1
ret ret
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
@ -199,7 +199,7 @@ ActionSave:
jnz still jnz still
mov [OpenDialog_data.type],1 ; save mov [OpenDialog_data.type],1 ; save
call OpenDialog_Start_1 call OpenDialog_Start_1
jne ActionOpen.1 jne still
call locSaveFile call locSaveFile
jmp ActionOpen.1 jmp ActionOpen.1
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
@ -233,7 +233,7 @@ align 4
add esi,TEST_REC_SIZE add esi,TEST_REC_SIZE
cmp dword [esi],0 cmp dword [esi],0
jnz .next_test jnz .next_test
xor dword [wFlags],1 xor dword [wFlags],1
mcall -1 mcall -1
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
draw_window: draw_window:
@ -449,8 +449,8 @@ thread_comment:
mov eax,esi mov eax,esi
dec eax dec eax
mov edi, edit1 mov edi, edit1
mov [edi+48], eax ;ed_size mov [edi+48], eax ;ed_size
mov [edi+52], eax ;ed_pos mov [edi+52], eax ;ed_pos
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
.red: .red:
call .draw_window call .draw_window
@ -463,8 +463,8 @@ thread_comment:
cmp eax,3 ; button in buffer ? cmp eax,3 ; button in buffer ?
je .button je .button
push dword name_editboxes push dword name_editboxes
call [edit_box_mouse] call [edit_box_mouse]
jmp .still jmp .still
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
.key: ; key .key: ; key
@ -474,8 +474,8 @@ thread_comment:
cmp ah,27 cmp ah,27
je .close je .close
push dword name_editboxes push dword name_editboxes
call [edit_box_key] call [edit_box_key]
jmp .still jmp .still
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
.button: ; button .button: ; button
@ -483,7 +483,7 @@ thread_comment:
cmp ah,1 ; button id=1 ? cmp ah,1 ; button id=1 ?
jne .still jne .still
.close: .close:
xor dword [wFlags],1 xor dword [wFlags],1
mcall -1 mcall -1
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
.draw_window: .draw_window:
@ -491,8 +491,8 @@ thread_comment:
xor eax,eax xor eax,eax
xor esi,esi xor esi,esi
mcall ,<100,300>,<100,80>,0x34780078,,aComment mcall ,<100,300>,<100,80>,0x34780078,,aComment
push dword name_editboxes push dword name_editboxes
call [edit_box_draw] call [edit_box_draw]
mcall 12,2 mcall 12,2
ret ret
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
@ -545,18 +545,18 @@ wFlags dd 0
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
align 4 align 4
results_table dd \ results_table dd \
?,?,testDrawWindow,aDrawingWindow,\ ?,?,testDrawWindow,aDrawingWindow,\
?,?,testDrawBar,aDrawingBar,\ ?,?,testDrawBar,aDrawingBar,\
?,?,testDrawPicture,aDrawingPicture,\ ?,?,testDrawPicture,aDrawingPicture,\
?,?,testDrawPicture_f73,aDrawingPictF73,\ ?,?,testDrawPicture_f73,aDrawingPictF73,\
?,?,testDrawVertLine,aDrawingVLine,\ ?,?,testDrawVertLine,aDrawingVLine,\
?,?,testDrawHorzLine,aDrawingHLine,\ ?,?,testDrawHorzLine,aDrawingHLine,\
?,?,testDrawFreeLine,aDrawingFLine,\ ?,?,testDrawFreeLine,aDrawingFLine,\
?,?,testDrawText1,aDrawingText1,\ ?,?,testDrawText1,aDrawingText1,\
?,?,testDrawText2,aDrawingText2,\ ?,?,testDrawText2,aDrawingText2,\
?,?,testDrawNumber,aDrawingNumber,\ ?,?,testDrawNumber,aDrawingNumber,\
?,?,testDrawPixel,aDrawingPixel,\ ?,?,testDrawPixel,aDrawingPixel,\
0,0,0,0 0,0,0,0
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
LINE_HEIGHT = 13 LINE_HEIGHT = 13
TEST_REC_SIZE = 16 TEST_REC_SIZE = 16
@ -633,9 +633,9 @@ communication_area_name:
db 'FFFFFFFF_open_dialog',0 db 'FFFFFFFF_open_dialog',0
open_dialog_path: open_dialog_path:
if __nightbuild eq yes if __nightbuild eq yes
db '/sys/MANAGERS/opendial',0 db '/sys/MANAGERS/opendial',0
else else
db '/sys/File Managers/opendial',0 db '/sys/File Managers/opendial',0
end if end if
communication_area_default_pach: communication_area_default_pach:
db '/rd0/1/',0 db '/rd0/1/',0
@ -672,8 +672,8 @@ ProcLib_import:
OpenDialog_Init dd aOpenDialog_Init OpenDialog_Init dd aOpenDialog_Init
OpenDialog_Start dd aOpenDialog_Start OpenDialog_Start dd aOpenDialog_Start
;OpenDialog__Version dd aOpenDialog_Version ;OpenDialog__Version dd aOpenDialog_Version
dd 0 dd 0
dd 0 dd 0
aOpenDialog_Init db 'OpenDialog_init',0 aOpenDialog_Init db 'OpenDialog_init',0
aOpenDialog_Start db 'OpenDialog_start',0 aOpenDialog_Start db 'OpenDialog_start',0
;aOpenDialog_Version db 'Version_OpenDialog',0 ;aOpenDialog_Version db 'Version_OpenDialog',0