diff --git a/libnxwidgets/src/cgraphicsport.cxx b/libnxwidgets/src/cgraphicsport.cxx index cbda90d6e..f128c3293 100644 --- a/libnxwidgets/src/cgraphicsport.cxx +++ b/libnxwidgets/src/cgraphicsport.cxx @@ -192,12 +192,9 @@ void CGraphicsPort::drawHorizLine(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_mxpixel_t color) { FAR struct nxgl_rect_s dest; - nxgl_coord_t halfwidth; // Express the line as a rectangle - halfwidth = width >> 1; - dest.pt1.x = x; dest.pt1.y = y; dest.pt2.x = x + width - 1;