Subversion Repositories Kolibri OS

Rev

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

Rev 6800 Rev 6802
Line 4... Line 4...
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;                                                              ;;
6
;;                                                              ;;
7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 8... Line 8...
8
 
8
 
Line 9... Line 9...
9
$Revision: 6800 $
9
$Revision: 6802 $
10
 
10
 
11
;==============================================================================
11
;==============================================================================
Line 359... Line 359...
359
;------------------------------------------------------------------------------
359
;------------------------------------------------------------------------------
360
syscall_window_settings: ;///// system function 71 ////////////////////////////
360
syscall_window_settings: ;///// system function 71 ////////////////////////////
361
;------------------------------------------------------------------------------
361
;------------------------------------------------------------------------------
362
        mov     edi, [CURRENT_TASK]
362
        mov     edi, [CURRENT_TASK]
363
        shl     edi, 5
363
        shl     edi, 5
364
        mov     [edi * 8 + SLOT_BASE + APPDATA.wnd_caption], ecx
-
 
365
        or      [edi + window_data + WDATA.fl_wstyle], WSTYLE_HASCAPTION
364
        or      [edi + window_data + WDATA.fl_wstyle], WSTYLE_HASCAPTION
-
 
365
        cmp     ebx, 2
-
 
366
        jz      @f
-
 
367
        xor     edx, edx
-
 
368
@@:
-
 
369
        cmp     dl, 4
-
 
370
        jc      @f
-
 
371
        xor     edx, edx
-
 
372
@@:
-
 
373
        mov     [edi*8 + SLOT_BASE + APPDATA.wnd_caption], ecx
-
 
374
        mov     [edi*8 + SLOT_BASE + APPDATA.captionEncoding], dl
366
        jmp     window._.draw_window_caption
375
        jmp     window._.draw_window_caption
367
;------------------------------------------------------------------------------
376
;------------------------------------------------------------------------------
368
align 4
377
align 4
369
set_window_defaults: ;/////////////////////////////////////////////////////////
378
set_window_defaults: ;/////////////////////////////////////////////////////////
370
;------------------------------------------------------------------------------
379
;------------------------------------------------------------------------------
Line 2242... Line 2251...
2242
.dodraw:
2251
.dodraw:
2243
        shr     eax, 3
2252
        shr     eax, 3
2244
        mov     esi, eax
2253
        mov     esi, eax
2245
        add     ebx, ebp
2254
        add     ebx, ebp
2246
        mov     ecx, [common_colours + 16]
2255
        mov     ecx, [common_colours + 16]
-
 
2256
        mov     al, [edi*8 + SLOT_BASE + APPDATA.captionEncoding]
-
 
2257
        test    al, al
-
 
2258
        jnz     @f
2247
        mov     al, 1
2259
        mov     al, 1
2248
        cmp     byte [edx], 4
2260
        cmp     byte [edx], 4
2249
        jnc     @f
2261
        jnc     @f
2250
        mov     al, [edx]
2262
        mov     al, [edx]
2251
        test    al, al
2263
        test    al, al