Subversion Repositories Kolibri OS

Rev

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

Rev 7257 Rev 7262
Line 2... Line 2...
2
	SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE);
2
	SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE);
3
}
3
}
4
 
4
 
Line 5... Line 5...
5
void PipetteTool_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) {
5
void PipetteTool_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) {
6
	//if (!canvas.hovered()) return; //TODO: option "Restrict pipette to canvas area"
6
	if (!canvas.hovered()) return; //TODO: option "Restrict pipette to canvas area"
7
	tool_color = GetPixelUnderMouse();
7
	tool_color = GetPixelUnderMouse();
8
	DrawBar(Form.cwidth-30, 5, 20, 20, tool_color);
8
	DrawBar(Form.cwidth-30, 5, 20, 20, tool_color);
Line 9... Line 9...
9
	
9
	
10
	if (mouse.down) {
10
	if (mouse.down) {