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:
Stefan Seyfried
2017-02-15 20:30:52 +01:00
committed by M. Liebmann
parent b7110faaf6
commit 7c7d5f08dd
8 changed files with 12 additions and 9 deletions

View File

@@ -112,7 +112,7 @@ class CFrameBuffer : public sigc::trackable
fb_pixel_t backgroundColor;
std::string backgroundFilename;
bool useBackgroundPaint;
unsigned int xRes, yRes, stride, bpp;
unsigned int xRes, yRes, stride, swidth, bpp;
t_fb_var_screeninfo screeninfo;
fb_cmap cmap;
__u16 red[256], green[256], blue[256], trans[256];