Rev 7271 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7271 | Rev 7422 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | if (key_scancode == SCAN_CODE_ESC) setCurrentTool(previousTool); |
6 | if (key_scancode == SCAN_CODE_ESC) setCurrentTool(previousTool); |
7 | } |
7 | } |
8 | 8 | ||
Line 9... | Line 9... | ||
9 | void PipetteTool_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) { |
9 | void PipetteTool_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) { |
10 | if (!canvas.hovered()) return; //TODO: option "Restrict pipette to canvas area" |
10 | //if (!canvas.hovered()) return; //TODO: option "Restrict pipette to canvas area" |
11 | tool_color = GetPixelUnderMouse(); |
11 | tool_color = GetPixelUnderMouse(); |
12 | DrawBar(Form.cwidth-30, 5, 20, 20, tool_color); |
12 | DrawBar(Form.cwidth-30, 5, 20, 20, tool_color); |
Line 13... | Line 13... | ||
13 | 13 | ||
14 | if (mouse.down) { |
14 | if (mouse.down) { |