Rev 7266 | Rev 7275 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7266 | Rev 7271 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | screen_copy = malloc(image.columns * image.rows * 3 ); |
5 | screen_copy = malloc(image.columns * image.rows * 3 ); |
6 | } |
6 | } |
Line 7... | Line 7... | ||
7 | 7 | ||
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 | CopyScreen(screen_copy, |
11 | |
11 | mouse.x + Form.left + 5 - calc(image.columns/2), |
12 | x = mouse.x + Form.left + 5 - calc(image.columns/2); |
- | 13 | y = mouse.y + Form.top + skin_height - calc(image.rows/2); |
|
- | 14 | ||
- | 15 | CopyScreen( |
|
- | 16 | screen_copy, |
|
- | 17 | math.in(x, 0, screen.width - image.columns), |
|
12 | mouse.y + Form.top + skin_height - calc(image.rows/2), |
18 | math.in(y, 0, screen.height - image.rows), |
- | 19 | image.columns, |
|
- | 20 | image.rows |
|
- | 21 | ); |
|
13 | image.columns, image.rows); |
22 | |
14 | for (i = 0; i < image.columns*image.rows; i++;) |
23 | for (i = 0; i < image.columns*image.rows; i++;) |
15 | { |
24 | { |
16 | image.mas[i] = ESDWORD[i*3+screen_copy] & 0xFFFFFF; |
25 | image.mas[i] = ESDWORD[i*3+screen_copy] & 0xFFFFFF; |
17 | } |
26 | } |