Subversion Repositories Kolibri OS

Rev

Rev 1324 | Rev 1330 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1324 Rev 1329
Line 55... Line 55...
55
;;
55
;;
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 57... Line 57...
57
 
57
 
Line 58... Line 58...
58
include 'macros.inc'
58
include 'macros.inc'
Line 59... Line 59...
59
 
59
 
Line 60... Line 60...
60
$Revision: 1324 $
60
$Revision: 1329 $
Line 2030... Line 2030...
2030
     mov  [ecx],byte 3       ; clear possible i40's
2030
     mov  [ecx],byte 3       ; clear possible i40's
2031
     ;call MEM_Heap_UnLock
2031
     ;call MEM_Heap_UnLock
Line 2032... Line 2032...
2032
 
2032
 
2033
     cmp  edx,[application_table_status]    ; clear app table stat
2033
     cmp  edx,[application_table_status]    ; clear app table stat
2034
     jne  noatsc
2034
     jne  noatsc
2035
     mov  [application_table_status],0
2035
     and  [application_table_status],0
2036
   noatsc:
2036
   noatsc:
2037
   noprocessterminate:
2037
   noprocessterminate:
Line 2038... Line 2038...
2038
     ret
2038
     ret
Line 2053... Line 2053...
2053
    test   eax,eax
2053
    test   eax,eax
2054
    jz     .not_found
2054
    jz     .not_found
2055
    mov    ecx,eax
2055
    mov    ecx,eax
2056
    cli
2056
    cli
2057
    call   sysfn_terminate
2057
    call   sysfn_terminate
2058
    mov    [application_table_status],0
2058
    and    [application_table_status],0
2059
    sti
2059
    sti
2060
    and    dword [esp+32],0
2060
    and    dword [esp+32],0
2061
    ret
2061
    ret
2062
.not_found:
2062
.not_found:
2063
    mov    [application_table_status],0
2063
    mov    [application_table_status],0
Line 3241... Line 3241...
3241
    ret
3241
    ret
Line 3242... Line 3242...
3242
 
3242
 
Line 3243... Line 3243...
3243
syscall_windowsettings:
3243
syscall_windowsettings:
3244
 
3244
 
3245
  .set_window_caption:
3245
  .set_window_caption:
Line 3246... Line 3246...
3246
        dec     eax     ; subfunction #1 - set window caption
3246
        dec     ebx     ; subfunction #1 - set window caption
3247
        jnz     .get_window_caption
3247
        jnz     .exit_fail
Line 3248... Line 3248...
3248
 
3248
 
Line 3260... Line 3260...
3260
;        mov     ecx,[edi*8+SLOT_BASE+APPDATA.mem_size]
3260
;        mov     ecx,[edi*8+SLOT_BASE+APPDATA.mem_size]
3261
;        add     ecx,255 ; max caption length
3261
;        add     ecx,255 ; max caption length
3262
;        cmp     ebx,ecx
3262
;        cmp     ebx,ecx
3263
;        ja      .exit_fail
3263
;        ja      .exit_fail
Line 3264... Line 3264...
3264
 
3264
 
3265
        mov     [edi*8+SLOT_BASE+APPDATA.wnd_caption],ebx
3265
        mov     [edi*8+SLOT_BASE+APPDATA.wnd_caption],ecx
Line 3266... Line 3266...
3266
        or      [edi+window_data+WDATA.fl_wstyle],WSTYLE_HASCAPTION
3266
        or      [edi+window_data+WDATA.fl_wstyle],WSTYLE_HASCAPTION
Line 3267... Line 3267...
3267
 
3267
 
3268
        call    draw_window_caption
3268
        call    draw_window_caption
Line 3269... Line 3269...
3269
 
3269
 
3270
        xor     eax,eax ; eax = 0 (success)
3270
        xor     eax,eax ; eax = 0 (success)
3271
        ret
3271
        ret
Line 3272... Line 3272...
3272
 
3272
 
Line 3273... Line 3273...
3273
  .get_window_caption:
3273
;  .get_window_caption:
3274
        dec     eax     ; subfunction #2 - get window caption
3274
;        dec     eax     ; subfunction #2 - get window caption