Subversion Repositories Kolibri OS

Rev

Rev 7271 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7257 leency 1
 
2
	SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE);
3
}
4
5
 
7271 leency 6
	if (key_scancode == SCAN_CODE_ESC) setCurrentTool(previousTool);
7
}
8
9
 
7257 leency 10
	//if (!canvas.hovered()) return; //TODO: option "Restrict pipette to canvas area"
7422 leency 11
	tool_color = GetPixelUnderMouse();
7257 leency 12
	DrawBar(Form.cwidth-30, 5, 20, 20, tool_color);
13
14
 
15
		DrawBar(Form.cwidth-30, 5, 20, 20, system.color.work);
16
		SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER);
17
		if (mouse.key&MOUSE_LEFT) EventSetActiveColor(1, tool_color);
18
		if (mouse.key&MOUSE_RIGHT) EventSetActiveColor(2, tool_color);
19
20
 
21
	}
22
}
23