Rev 7275 | Rev 7506 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7275 | Rev 7444 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | image.mas[i] = ESDWORD[i*3+screen_copy] & 0xFFFFFF; |
25 | image.mas[i] = ESDWORD[i*3+screen_copy] & 0xFFFFFF; |
26 | } |
26 | } |
27 | DrawCanvas(); |
27 | DrawCanvas(); |
Line 28... | Line 28... | ||
28 | 28 | ||
- | 29 | if (mouse.down) { |
|
- | 30 | ScreenCopy_onKeyEvent(SCAN_CODE_ENTER); |
|
- | 31 | } |
|
- | 32 | } |
|
- | 33 | ||
- | 34 | void ScreenCopy_onKeyEvent(dword keycode) { |
|
- | 35 | if (SCAN_CODE_ENTER == keycode) { |
|
29 | if (mouse.down) { |
36 | actionsHistory.saveCurrentState(); |
30 | screen_copy = free(screen_copy); |
37 | screen_copy = free(screen_copy); |
31 | SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER); |
- | |
32 | actionsHistory.saveCurrentState(); |
38 | SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER); |
33 | setCurrentTool(previousTool); |
39 | setCurrentTool(previousTool); |
34 | if (!CheckActiveProcess(Form.ID)) ActivateWindow(GetProcessSlot(Form.ID)); |
40 | if (!CheckActiveProcess(Form.ID)) ActivateWindow(GetProcessSlot(Form.ID)); |
- | 41 | } |
|
- | 42 | if (SCAN_CODE_ESC == keycode) { |
|
- | 43 | ScreenCopy_onKeyEvent(SCAN_CODE_ENTER); |
|
- | 44 | actionsHistory.undoLastAction(); |
|
35 | } |
45 | } |