Subversion Repositories Kolibri OS

Rev

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

Rev 314 Rev 379
Line 362... Line 362...
362
    push edi
362
    push edi
363
    push eax
363
    push eax
364
    push ebx
364
    push ebx
365
    push ecx
365
    push ecx
366
    push edx
366
    push edx
367
    mov  ecx,[0x3010]
367
    mov  ecx,[TASK_BASE]
368
    add  eax,[ecx-twdw+WDATA.box.left]
368
    add  eax,[ecx-twdw+WDATA.box.left]
369
    add  ebx,[ecx-twdw+WDATA.box.top]
369
    add  ebx,[ecx-twdw+WDATA.box.top]
370
    push eax
370
    push eax
371
    mov  eax,ebx         ; y
371
    mov  eax,ebx         ; y
372
    mov  ebx,[0xfe08]
372
    mov  ebx,[0xfe08]
Line 400... Line 400...
400
 
400
 
Line 401... Line 401...
401
    ; check limits ?
401
    ; check limits ?
402
 
402
 
403
    push eax
403
    push eax
404
    push ecx
404
    push ecx
405
    mov  eax,[0x3010]
405
    mov  eax,[TASK_BASE]
406
    mov  ecx,[eax+draw_data-0x3000+RECT.left]
406
    mov  ecx,[eax+draw_data-CURRENT_TASK+RECT.left]
407
    cmp  ecx,0
407
    cmp  ecx,0
408
    jnz  dbcblimitlset12
408
    jnz  dbcblimitlset12
409
    mov  ecx,[eax+draw_data-0x3000+RECT.top]
409
    mov  ecx,[eax+draw_data-CURRENT_TASK+RECT.top]
410
    cmp  ecx,0
410
    cmp  ecx,0
411
    jnz  dbcblimitlset12
411
    jnz  dbcblimitlset12
412
    mov  ecx,[eax+draw_data-0x3000+RECT.right]
412
    mov  ecx,[eax+draw_data-CURRENT_TASK+RECT.right]
413
    cmp  ecx,[0xfe00]
413
    cmp  ecx,[0xfe00]
414
    jnz  dbcblimitlset12
414
    jnz  dbcblimitlset12
415
    mov  ecx,[eax+draw_data-0x3000+RECT.bottom]
415
    mov  ecx,[eax+draw_data-CURRENT_TASK+RECT.bottom]
416
    cmp  ecx,[0xfe04]
416
    cmp  ecx,[0xfe04]
417
    jnz  dbcblimitlset12
417
    jnz  dbcblimitlset12
418
    pop  ecx
418
    pop  ecx
Line 460... Line 460...
460
      mov  eax,edi
460
      mov  eax,edi
461
      sub  eax,[0xfe80]
461
      sub  eax,[0xfe80]
462
      mov  ebx,3
462
      mov  ebx,3
463
      div  ebx
463
      div  ebx
464
      add  eax,WinMapAddress
464
      add  eax,WinMapAddress
465
      mov   ebx,[0x3000]
465
      mov   ebx,[CURRENT_TASK]
466
      cld
466
      cld
Line 467... Line 467...
467
 
467
 
Line 468... Line 468...
468
      dbnp2412:
468
      dbnp2412:
Line 551... Line 551...
551
 
551
 
552
      mov  eax,edi
552
      mov  eax,edi
553
      sub  eax,[0xfe80]
553
      sub  eax,[0xfe80]
554
      shr  eax,2
554
      shr  eax,2
555
      add  eax,WinMapAddress
555
      add  eax,WinMapAddress
556
      mov   ebx,[0x3000]
556
      mov   ebx,[CURRENT_TASK]
Line 557... Line 557...
557
      cld
557
      cld
Line 558... Line 558...
558
 
558
 
Line 729... Line 729...
729
    push  ebx
729
    push  ebx
730
    push  ecx
730
    push  ecx
731
    push  edx
731
    push  edx
732
    movzx eax,word [esp+2]
732
    movzx eax,word [esp+2]
733
    movzx ebx,word [esp+0]
733
    movzx ebx,word [esp+0]
734
    mov   ecx,[0x3010]
734
    mov   ecx,[TASK_BASE]
735
    add   eax,[ecx-twdw+WDATA.box.left]
735
    add   eax,[ecx-twdw+WDATA.box.left]
736
    add   ebx,[ecx-twdw+WDATA.box.top]
736
    add   ebx,[ecx-twdw+WDATA.box.top]
737
    push  eax
737
    push  eax
738
    mov   eax,ebx         ; y
738
    mov   eax,ebx         ; y
739
    mul   dword [0xfe08]
739
    mul   dword [0xfe08]
Line 758... Line 758...
758
    movzx ebx,word [esp+4]
758
    movzx ebx,word [esp+4]
Line 759... Line 759...
759
 
759
 
Line 760... Line 760...
760
    ; check limits while draw ?
760
    ; check limits while draw ?
761
 
761
 
762
    push  ecx
762
    push  ecx
763
    mov  eax,[0x3010]
763
    mov  eax,[TASK_BASE]
764
    cmp  dword [eax+draw_data-0x3000+RECT.left], 0
764
    cmp  dword [eax+draw_data-CURRENT_TASK+RECT.left], 0
765
    jnz  dbcblimitlset212
765
    jnz  dbcblimitlset212
766
    cmp  dword [eax+draw_data-0x3000+RECT.top], 0
766
    cmp  dword [eax+draw_data-CURRENT_TASK+RECT.top], 0
767
    jnz  dbcblimitlset212
767
    jnz  dbcblimitlset212
768
    mov  ecx,[eax+draw_data-0x3000+RECT.right]
768
    mov  ecx,[eax+draw_data-CURRENT_TASK+RECT.right]
769
    cmp  ecx,[0xfe00]
769
    cmp  ecx,[0xfe00]
770
    jnz  dbcblimitlset212
770
    jnz  dbcblimitlset212
771
    mov  ecx,[eax+draw_data-0x3000+RECT.bottom]
771
    mov  ecx,[eax+draw_data-CURRENT_TASK+RECT.bottom]
772
    cmp  ecx,[0xfe04]
772
    cmp  ecx,[0xfe04]
773
    jnz  dbcblimitlset212
773
    jnz  dbcblimitlset212
774
    pop  ecx
774
    pop  ecx
Line 796... Line 796...
796
      mov  edx,edi
796
      mov  edx,edi
797
      sub  edx,[0xfe80]
797
      sub  edx,[0xfe80]
798
      mov  ebx,3
798
      mov  ebx,3
799
      div  ebx
799
      div  ebx
800
      add  edx,WinMapAddress
800
      add  edx,WinMapAddress
801
      mov  ebx,[0x3000]
801
      mov  ebx,[CURRENT_TASK]
802
      mov  bh,[esp+4*3]
802
      mov  bh,[esp+4*3]
Line 803... Line 803...
803
 
803
 
Line 804... Line 804...
804
      np2412:
804
      np2412:
Line 865... Line 865...
865
 
865
 
866
      mov  edx,edi
866
      mov  edx,edi
867
      sub  edx,[0xfe80]
867
      sub  edx,[0xfe80]
868
      shr  edx,2
868
      shr  edx,2
869
      add  edx,WinMapAddress
869
      add  edx,WinMapAddress
870
      mov   ebx,[0x3000]
870
      mov   ebx,[CURRENT_TASK]
Line 871... Line 871...
871
      mov   bh,[esp+4*3]
871
      mov   bh,[esp+4*3]
Line 872... Line 872...
872
 
872