Rev 3985 | Rev 4027 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3974 | GerdtR | 1 | BGRedrawThread: |
2 | |||
3 | mcall 40,010000b |
||
4 | |||
5 | BGRTRedrawIcons: |
||
4007 | GerdtR | 6 | @@: |
7 | cmp [bIcoBuff],1 ;для блокировки пререрисовки иконок |
||
8 | jne @f |
||
9 | mcall 5,1 |
||
10 | jmp @b |
||
11 | @@: |
||
12 | |||
13 | mov [bIcoBuff],1 |
||
14 | |||
3974 | GerdtR | 15 | mcall 48,5 |
16 | mov dx,ax |
||
17 | shr eax,16 |
||
18 | sub dx,ax |
||
19 | mov [ScreenX],dx |
||
20 | mov ax,bx |
||
21 | shr ebx,16 |
||
22 | sub ax,bx |
||
23 | mov [ScreenY],ax |
||
24 | |||
25 | mov ecx,[MaxNumIcon] |
||
26 | test ecx,ecx |
||
27 | jz .NoDraw |
||
28 | xor ebx,ebx |
||
29 | @@: push ecx |
||
30 | cmp [IconNoDraw],ebx |
||
31 | je .nd |
||
32 | stdcall DrawIcon,ebx,0 |
||
33 | .nd: |
||
34 | inc ebx |
||
35 | pop ecx |
||
36 | loop @b |
||
37 | .NoDraw: |
||
3985 | GerdtR | 38 | |
4007 | GerdtR | 39 | mov [bIcoBuff],0 |
3985 | GerdtR | 40 | |
41 | |||
42 | BGRTmessages: |
||
43 | mcall 10 |
||
44 | sub eax,5 |
||
45 | jz BGRTRedrawIcons |
||
46 | |||
3974 | GerdtR | 47 | jmp BGRTmessages |
48 |