fbaccel: fix h/v line length for unaccelerated FB

Origin commit data
------------------
Commit: 69c9702f37
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-05-27 (Mon, 27 May 2013)
This commit is contained in:
Stefan Seyfried
2013-05-27 00:49:35 +02:00
parent 1adf98ac9a
commit 2e52bef03f

View File

@@ -447,9 +447,10 @@ void CFbAccel::paintLine(int xa, int ya, int xb, int yb, const fb_pixel_t col)
#else
int dx = abs (xa - xb);
int dy = abs (ya - yb);
#if HAVE_SPARK_HARDWARE
if (dy == 0) /* horizontal line */
{
/* paintRect actually is 1 pixel short to the right,
* but that's bug-compatibility with the GXA code */
paintRect(xa, ya, xb - xa, 1, col);
return;
}
@@ -458,7 +459,6 @@ void CFbAccel::paintLine(int xa, int ya, int xb, int yb, const fb_pixel_t col)
paintRect(xa, ya, 1, yb - ya, col);
return;
}
#endif
int x;
int y;
int End;