Subversion Repositories Kolibri OS

Rev

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

Rev 546 Rev 549
Line 53... Line 53...
53
;;
53
;;
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 55... Line 55...
55
 
55
 
Line 56... Line 56...
56
include 'macros.inc'
56
include 'macros.inc'
Line 57... Line 57...
57
 
57
 
58
$Revision: 546 $
58
$Revision: 549 $
59
 
59
 
Line 2951... Line 2951...
2951
    ;ret
2951
    ;ret
2952
    jmp   draw_window_caption.2
2952
    jmp   draw_window_caption.2
2953
  nosyswIII:
2953
  nosyswIII:
Line 2954... Line 2954...
2954
 
2954
 
-
 
2955
    cmp   edi,3   ; type IV - skinned window
-
 
2956
    je    draw_skin_window
2955
    cmp   edi,3   ; type IV - skinned window
2957
    cmp   edi,4   ; type V - skinned window not sized!		{not_sized_skin_window}
-
 
2958
    jne   nosyswV
Line 2956... Line 2959...
2956
    jne   nosyswIV
2959
  draw_skin_window:
2957
 
2960
  
2958
    ; parameter for drawwindow_IV
2961
    ; parameter for drawwindow_IV
2959
    push  0
2962
    push  0
Line 2971... Line 2974...
2971
    call  drawwindow_IV
2974
    call  drawwindow_IV
2972
    ;dec   [mouse_pause]
2975
    ;dec   [mouse_pause]
2973
    ;call   [draw_pointer]
2976
    ;call   [draw_pointer]
2974
    ;ret
2977
    ;ret
2975
    jmp   draw_window_caption.2
2978
    jmp   draw_window_caption.2
2976
  nosyswIV:
2979
  nosyswV:
Line 2977... Line 2980...
2977
 
2980
 
Line 2978... Line 2981...
2978
    ret
2981
    ret
Line 2992... Line 2995...
2992
        shl     edx,5
2995
        shl     edx,5
2993
        add     edx,window_data
2996
        add     edx,window_data
2994
        movzx   ebx,[edx+WDATA.fl_wstyle]
2997
        movzx   ebx,[edx+WDATA.fl_wstyle]
2995
        and     bl,0x0F
2998
        and     bl,0x0F
2996
        cmp     bl,3
2999
        cmp     bl,3
-
 
3000
        je      .draw_caption_style_3		;{for 3 and 4 style write caption}
-
 
3001
        cmp     bl,4
-
 
3002
        je      .draw_caption_style_3
-
 
3003
    
2997
        jne     .not_style_3
3004
        jmp     .not_style_3
-
 
3005
  .draw_caption_style_3:
Line 2998... Line 3006...
2998
 
3006
 
2999
        push    edx
3007
        push    edx
3000
        call    drawwindow_IV_caption
3008
        call    drawwindow_IV_caption
3001
        add     esp,4
3009
        add     esp,4
Line 3026... Line 3034...
3026
        add     ecx,[edi+CURRENT_TASK+TASKDATA.mem_start]
3034
        add     ecx,[edi+CURRENT_TASK+TASKDATA.mem_start]
Line 3027... Line 3035...
3027
 
3035
 
3028
        movzx   eax,[edi+window_data+WDATA.fl_wstyle]
3036
        movzx   eax,[edi+window_data+WDATA.fl_wstyle]
3029
        and     al,0x0F
3037
        and     al,0x0F
-
 
3038
        cmp     al,3
-
 
3039
        je      .skinned
3030
        cmp     al,3
3040
        cmp     al,4
Line -... Line 3041...
-
 
3041
        je      .skinned
-
 
3042
       
3031
        jne     .not_skinned
3043
        jmp     .not_skinned
3032
 
3044
  .skinned:		
3033
        mov     ebp,[edi+window_data+WDATA.box.left-2]
3045
        mov     ebp,[edi+window_data+WDATA.box.left-2]
3034
        mov     bp,word[edi+window_data+WDATA.box.top]
3046
        mov     bp,word[edi+window_data+WDATA.box.top]
3035
        movzx   eax,word[edi+window_data+WDATA.box.width]
3047
        movzx   eax,word[edi+window_data+WDATA.box.width]
Line 3083... Line 3095...
3083
        ret
3095
        ret
Line 3084... Line 3096...
3084
 
3096
 
3085
iglobal
3097
iglobal
3086
align 4
3098
align 4
3087
window_topleft dd \
3099
window_topleft dd \
3088
  1, 21,\
3100
  1, 21,\		;type 0
3089
  0,  0,\
3101
  0,  0,\       ;type 1
3090
  5, 20,\
3102
  5, 20,\       ;type 2
-
 
3103
  5,  ?,\       ;type 3 {set by skin}
3091
  5,  ?
3104
  5,  ?         ;type 4 {set by skin}
Line 3092... Line 3105...
3092
endg
3105
endg
3093
 
3106
 
Line 3094... Line 3107...
3094
set_window_clientbox:
3107
set_window_clientbox:
3095
        push    eax ecx edi
3108
        push    eax ecx edi
-
 
3109
 
Line 3096... Line 3110...
3096
 
3110
        mov     eax,[_skinh]
3097
        mov     eax,[_skinh]
3111
        mov     [window_topleft+4*7],eax
3098
        mov     [window_topleft+4*7],eax
3112
        mov     [window_topleft+4*9],eax
3099
 
3113
 
Line 3179... Line 3193...
3179
    add   edi,SLOT_BASE
3193
    add   edi,SLOT_BASE
Line 3180... Line 3194...
3180
 
3194
 
3181
        and     cl,0x0F
3195
        and     cl,0x0F
3182
        mov     [edi+APPDATA.wnd_caption],0
3196
        mov     [edi+APPDATA.wnd_caption],0
-
 
3197
        cmp     cl,3
-
 
3198
        je      set_APPDATA_wnd_caption
-
 
3199
        cmp     cl,4								; {SPraid.simba}
-
 
3200
        je      set_APPDATA_wnd_caption
3183
        cmp     cl,3
3201
        
-
 
3202
        jmp     @f		
3184
        jne     @f
3203
    set_APPDATA_wnd_caption:
3185
        mov     [edi+APPDATA.wnd_caption],esi
3204
        mov     [edi+APPDATA.wnd_caption],esi
Line 3186... Line 3205...
3186
    @@: mov     esi,[esp+0]
3205
    @@: mov     esi,[esp+0]
3187
 
3206