Rev 2509 | Rev 2513 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2509 | Rev 2511 | ||
---|---|---|---|
Line 67... | Line 67... | ||
67 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
67 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 68... | Line 68... | ||
68 | 68 | ||
69 | include 'macros.inc' |
69 | include 'macros.inc' |
Line 70... | Line 70... | ||
70 | include 'struct.inc' |
70 | include 'struct.inc' |
Line 71... | Line 71... | ||
71 | 71 | ||
Line 72... | Line 72... | ||
72 | $Revision: 2509 $ |
72 | $Revision: 2511 $ |
Line 4670... | Line 4670... | ||
4670 | ret |
4670 | ret |
4671 | .err: |
4671 | .err: |
4672 | call .free |
4672 | call .free |
4673 | ; pop eax |
4673 | ; pop eax |
4674 | ret |
4674 | ret |
- | 4675 | ;----------------------------------------------------------------------------- |
|
- | 4676 | align 4 |
|
- | 4677 | syscall_getpixel_WinMap: ; GetPixel WinMap |
|
- | 4678 | cmp ebx, [Screen_Max_X] |
|
- | 4679 | jbe @f |
|
- | 4680 | cmp ecx, [Screen_Max_Y] |
|
- | 4681 | jbe @f |
|
- | 4682 | xor eax, eax |
|
- | 4683 | jmp .store |
|
- | 4684 | ;-------------------------------------- |
|
- | 4685 | align 4 |
|
4675 | 4686 | @@: |
|
- | 4687 | mov eax, [d_width_calc_area + ecx*4] |
|
- | 4688 | add eax, [_WinMapAddress] |
|
- | 4689 | movzx eax, byte[eax+ebx] ; get value for current point |
|
- | 4690 | ;-------------------------------------- |
|
- | 4691 | align 4 |
|
- | 4692 | .store: |
|
- | 4693 | mov [esp + 32], eax |
|
- | 4694 | ret |
|
- | 4695 | ;----------------------------------------------------------------------------- |
|
4676 | align 4 |
4696 | align 4 |
4677 | - | ||
4678 | syscall_getpixel: ; GetPixel |
4697 | syscall_getpixel: ; GetPixel |
4679 | mov ecx, [Screen_Max_X] |
4698 | mov ecx, [Screen_Max_X] |
4680 | inc ecx |
4699 | inc ecx |
4681 | xor edx, edx |
4700 | xor edx, edx |
4682 | mov eax, ebx |
4701 | mov eax, ebx |