Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- draw_landscape:
- push ebp
- mov ebp, esp
- sub esp, 8
- %define xx ebp - 4
- %define yy ebp - 8
- push dword [hLandscapePen]
- push dword [hMemDC]
- call SelectObject
- mov dword [xx], 0
- .loopx
- mov dword [yy], 0
- .loopy
- push 0
- push dword [yy]
- push dword [xx]
- push dword [hMemDC]
- call MoveToEx
- add dword [yy], 1
- push dword [yy]
- push dword [xx]
- push dword [hMemDC]
- call LineTo
- cmp dword [yy], MAXY
- jne .loopy
- add dword [xx], 1
- cmp dword [xx], MAXX
- jne .loopx
- mov esp, ebp
- pop ebp
- ret
Add Comment
Please, Sign In to add comment