2dlib: Fix unused variable compiler warning in pen.cpp

This removes some unused variables in 2dlib/pen.cpp.
This commit is contained in:
Sebastian Holtermann 2024-10-30 13:41:38 +01:00
parent 836dd4d382
commit 9af8c16b6b

View File

@ -129,18 +129,9 @@ void grViewport::hline(ddgr_color col, int x1, int x2, int y1) {
rend_DrawLine(x1, y1, x2, y1); rend_DrawLine(x1, y1, x2, y1);
} }
// grViewport::line
// draws a clipped line
void grViewport::line(ddgr_color color, int x1, int y1, int x2, int y2) { void grViewport::line(ddgr_color color, int x1, int y1, int x2, int y2) {
int xa, ya, xb, yb;
ASSERT(vp_Locked); ASSERT(vp_Locked);
xa = global_x(x1);
ya = global_y(y1);
xb = global_x(x2);
yb = global_y(y2);
rend_SetFlatColor(color); rend_SetFlatColor(color);
rend_DrawLine(x1, y1, x2, y2); rend_DrawLine(x1, y1, x2, y2);
} }