mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-09 22:58:34 +02:00
fb_generic: add swidth variable, "stride in fb_pixel_t units"
this should allow to use fb_pixel_t pointer arithmetics more often instead of byte pointers
This commit is contained in:
committed by
M. Liebmann
parent
b7110faaf6
commit
7c7d5f08dd
@@ -82,7 +82,6 @@ void CFbAccel::paintBoxRel(const int x, const int y, const int dx, const int dy,
|
||||
void CFbAccel::paintRect(const int x, const int y, const int dx, const int dy, const fb_pixel_t col)
|
||||
{
|
||||
int line = 0;
|
||||
int swidth = stride / sizeof(fb_pixel_t);
|
||||
fb_pixel_t *fbp = getFrameBufferPointer() + (swidth * y);
|
||||
int pos;
|
||||
while (line < dy)
|
||||
|
Reference in New Issue
Block a user