Rev 7506 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7506 | Rev 9597 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | void ScreenCopy_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) { |
8 | void ScreenCopy_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) { |
9 | dword i; |
9 | dword i; |
10 | int x, y; |
10 | int x, y; |
Line 11... | Line 11... | ||
11 | 11 | ||
12 | x = mouse.x + Form.left + 5 - calc(image.columns/2); |
12 | x = mouse.x + Form.left + 5 - calc(image.columns/2); |
Line 13... | Line 13... | ||
13 | y = mouse.y + Form.top + skin_height - calc(image.rows/2); |
13 | y = mouse.y + Form.top + skin_h - calc(image.rows/2); |
14 | 14 | ||
15 | CopyScreen( |
15 | CopyScreen( |
16 | screen_copy, |
16 | screen_copy, |
17 | math.in(x, 0, screen.width - image.columns), |
17 | math.in(x, 0, screen.w - image.columns), |
18 | math.in(y, 0, screen.height - image.rows), |
18 | math.in(y, 0, screen.h - image.rows), |
19 | image.columns, |
19 | image.columns, |
Line 20... | Line 20... | ||
20 | image.rows |
20 | image.rows |