Subversion Repositories Kolibri OS

Rev

Rev 7254 | Rev 7257 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7254 Rev 7255
Line 65... Line 65...
65
void PipetteTool_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) {
65
void PipetteTool_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) {
66
	tool_color = GetPixelUnderMouse();
66
	tool_color = GetPixelUnderMouse();
67
	DrawBar(Form.cwidth-30, 5, 20, 20, tool_color);
67
	DrawBar(Form.cwidth-30, 5, 20, 20, tool_color);
Line 68... Line 68...
68
	
68
	
-
 
69
	if (mouse.down) {
69
	if (mouse.down) {
70
		DrawBar(Form.cwidth-30, 5, 20, 20, system.color.work);
70
		SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER);
71
		SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER);
71
		if (mouse.key&MOUSE_LEFT) EventSetActiveColor(1, tool_color);
72
		if (mouse.key&MOUSE_LEFT) EventSetActiveColor(1, tool_color);
Line 72... Line 73...
72
		if (mouse.key&MOUSE_RIGHT) EventSetActiveColor(2, tool_color);
73
		if (mouse.key&MOUSE_RIGHT) EventSetActiveColor(2, tool_color);