code: public void drawLine(float x1, float y1, float x2, float y2) {
  		float lineWidth = this.lineWidth - 1;
  		
  		if (LSR.applyGLLineFixes()) {
  			if (x1 == x2) {
  				if (y1 > y2) {
  					float temp = y2;
  					y2 = y1;
  					y1 = temp;
  				}
  				float step = 1 / sy;
  				lineWidth = lineWidth / sy;
  				fillRect(x1-(lineWidth/2.0f),y1-(lineWidth/2.0f),lineWidth+step,(y2-y1)+lineWidth+step);
  				return;
  			} else if (y1 == y2) {
  				if (x1 > x2) {
  					float temp = x2;
  					x2 = x1;
  					x1 = temp;
  				}
  				float step = 1 / sx;
  				lineWidth = lineWidth / sx;
  				fillRect(x1-(lineWidth/2.0f),y1-(lineWidth/2.0f),(x2-x1)+lineWidth+step,lineWidth+step);
  				return;
  			}
  		}
  		
  		predraw();
  		currentColor.bind();
  		TextureImpl.bindNone();
  
  		LSR.start();
  		LSR.vertex(x1,y1);
  		LSR.vertex(x2,y2);
  		LSR.end();
  		
  		postdraw();
  	}
docs: Draw a line on the canvas in the current colour
  
  @param x1
  The x coordinate of the start point
  @param y1
  The y coordinate of the start point
  @param x2
  The x coordinate of the end point
  @param y2
  The y coordinate of the end point