Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7257 leency 1
 
2
3
 
4
	if (canvas.hovered())
5
	{
6
		if ((PencilTool_Drawing == true) && (!mouse.key)) {
7
			actionsHistory.saveCurrentState();
8
			PencilTool_Drawing = false;
9
		}
10
11
 
12
			image.set_pixel(hoverY, hoverX, tool_color);
13
			DrawCanvasPixel(hoverY, hoverX, tool_color);
14
			PencilTool_Drawing = true;
15
		}
16
		if (mouse.up) {
17
			DrawPreview();
18
			actionsHistory.saveCurrentState();
19
		}
20
	}
21
}
22
23
 
24
	PencilTool_Drawing = false;
25
}
26