Rev 7260 | Rev 7271 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7260 | Rev 7266 | ||
---|---|---|---|
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; |
|
- | 10 | CopyScreen(screen_copy, |
|
9 | dword i; |
11 | mouse.x + Form.left + 5 - calc(image.columns/2), |
- | 12 | mouse.y + Form.top + skin_height - calc(image.rows/2), |
|
10 | CopyScreen(screen_copy, mouse.x + Form.left + 5, mouse.y + Form.top + skin_height, image.columns, image.rows); |
13 | image.columns, image.rows); |
11 | for (i = 0; i < image.columns*image.rows; i++;) |
14 | for (i = 0; i < image.columns*image.rows; i++;) |
12 | { |
15 | { |
13 | image.mas[i] = ESDWORD[i*3+screen_copy] & 0xFFFFFF; |
16 | image.mas[i] = ESDWORD[i*3+screen_copy] & 0xFFFFFF; |
14 | } |
17 | } |
Line 17... | Line 20... | ||
17 | if (mouse.down) { |
20 | if (mouse.down) { |
18 | screen_copy = free(screen_copy); |
21 | screen_copy = free(screen_copy); |
19 | SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER); |
22 | SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER); |
20 | actionsHistory.saveCurrentState(); |
23 | actionsHistory.saveCurrentState(); |
21 | setCurrentTool(previousTool); |
24 | setCurrentTool(previousTool); |
- | 25 | if (!CheckActiveProcess(Form.ID)) ActivateWindow(GetProcessSlot(Form.ID)); |
|
22 | } |
26 | } |
23 | }> |
27 | }> |