Subversion Repositories Kolibri OS

Rev

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

Rev 4140 Rev 4157
Line 6... Line 6...
6
;-------------------------------------------------------------------------------
6
;-------------------------------------------------------------------------------
7
    include "../../../macros.inc"
7
    include "../../../macros.inc"
8
    include "../../../proc32.inc"
8
    include "../../../proc32.inc"
9
    include "../../../dll.inc"
9
    include "../../../dll.inc"
10
    include "../../../develop/libraries/box_lib/load_lib.mac"
10
    include "../../../develop/libraries/box_lib/load_lib.mac"
-
 
11
    ;include "../../../debug.inc"
Line 11... Line 12...
11
 
12
 
12
    include "DATA.INC"
13
    include "DATA.INC"
Line 13... Line 14...
13
    include "NAME.INC"
14
    include "NAME.INC"
Line 159... Line 160...
159
 
160
 
Line 160... Line 161...
160
    ret
161
    ret
161
 
162
 
162
 .HORZ_HEIGHT:
163
 .HORZ_HEIGHT:
Line 163... Line 164...
163
    mov     dword[win.height_opn], BUTTON_SIZE
164
    mov     dword[win.height_opn], BUTTON_SIZE
Line 164... Line 165...
164
    mov     dword[win.height_hdn], 0
165
    mov     dword[win.height_hdn], 3
165
 
166
 
166
    ret
167
    ret
167
 
168
 
168
 .HORZ_Y_BOTTOM:
169
 .HORZ_Y_BOTTOM:
169
    mcall   14
170
    mcall   14
170
    and     eax, 0xFFFF
171
    and     eax, 0xFFFF
Line 171... Line 172...
171
    dec     eax
172
    dec     eax
Line 172... Line 173...
172
    mov     [win.y_hdn], eax
173
    mov     [win.y_hdn], eax
Line 181... Line 182...
181
 
182
 
Line 182... Line 183...
182
    ret
183
    ret
183
 
184
 
184
 .VERT_WIDTH:
185
 .VERT_WIDTH:
Line 185... Line 186...
185
    mov     dword[win.width_opn], BUTTON_SIZE
186
    mov     dword[win.width_opn], BUTTON_SIZE
Line 186... Line 187...
186
    mov     dword[win.width_hdn], 0
187
    mov     dword[win.width_hdn], 3
Line 299... Line 300...
299
    cmp     byte[win.isvert], 1
300
    cmp     byte[win.isvert], 1
300
    je	    .vert_btn
301
    je	    .vert_btn
301
    mcall   , edi, <0, BUTTON_SIZE>
302
    mcall   , edi, <0, BUTTON_SIZE>
302
    jmp     .endbtn
303
    jmp     .endbtn
303
 .vert_btn:
304
 .vert_btn:
-
 
305
    sub     edi, 12 shl 16
304
    mcall   , <0, BUTTON_SIZE>, edi
306
    mcall   , <0, BUTTON_SIZE>, edi
305
 .endbtn:
307
 .endbtn:
306
    pop     edi
308
    pop     edi
Line 307... Line 309...
307
 
309
 
Line 324... Line 326...
324
    cmp     byte[win.isvert], 1
326
    cmp     byte[win.isvert], 1
325
    je	    .vert_draw_sep
327
    je	    .vert_draw_sep
326
    mcall   , , <4, 36>, [color.frame]
328
    mcall   , , <4, 36>, [color.frame]
327
    jmp     .end_inner_sep
329
    jmp     .end_inner_sep
328
 .vert_draw_sep:
330
 .vert_draw_sep:
-
 
331
    sub     ebx, 12 shl 16
329
    mov     ecx, ebx
332
    mov     ecx, ebx
330
    mcall   , <4, 36>, , [color.frame]
333
    mcall   , <4, 36>, , [color.frame]
331
 .end_inner_sep:
334
 .end_inner_sep:
332
    pop     ecx
335
    pop     ecx
333
    pop     ebx
336
    pop     ebx
Line 427... Line 430...
427
    mov     eax, edi
430
    mov     eax, edi
428
    jmp     .nxt
431
    jmp     .nxt
Line 429... Line 432...
429
 
432
 
430
 .vert:
433
 .vert:
-
 
434
    mov     eax, esi
Line 431... Line 435...
431
    mov     eax, esi
435
    add     eax, 12
432
 
436
 
433
 .nxt:
437
 .nxt:
434
    sub     eax, 12
438
    sub     eax, 12
Line 454... Line 458...
454
    imul    eax, BUTTON_SIZE
458
    imul    eax, BUTTON_SIZE
455
    cmp     byte[win.isvert], 1
459
    cmp     byte[win.isvert], 1
456
    je	    .vert_name
460
    je	    .vert_name
457
    add     eax, [win.x]
461
    add     eax, [win.x]
458
    mov     [nwin.x], eax
462
    mov     [nwin.x], eax
-
 
463
    mov     byte[nwin.change_shape], 1
-
 
464
    mcall   13, <0, [win.width]>, <[win.height], 1>, [color.frame]
459
    jmp     .vert_end
465
    jmp     .vert_end
460
 .vert_name:
466
 .vert_name:
461
    add     eax, [win.y]
467
    add     eax, [win.y]
-
 
468
    add     eax, 14
462
    mov     [nwin.y], eax
469
    mov     [nwin.y], eax
463
 .vert_end:
-
 
464
    mov     byte[nwin.change_shape], 1
470
    mov     byte[nwin.change_shape], 1
465
    mcall   13, <0, [win.width]>, <[win.height], 1>, [color.frame]
471
    mcall   13, <[win.width], 1>, <0, [win.height]>, [color.frame]
-
 
472
 .vert_end:
Line 466... Line 473...
466
 
473
 
467
    cmp     byte[win.state], 1
474
    cmp     byte[win.state], 1
Line 468... Line 475...
468
    je	    main_loop
475
    je	    main_loop