mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-07 21:58:35 +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
@@ -512,6 +512,7 @@ int CFbAccelSTi::setMode(unsigned int, unsigned int, unsigned int)
|
||||
yRes = screeninfo.yres = screeninfo.yres_virtual = DEFAULT_YRES;
|
||||
bpp = screeninfo.bits_per_pixel = DEFAULT_BPP;
|
||||
stride = screeninfo.xres * screeninfo.bits_per_pixel / 8;
|
||||
swidth = screeninfo.xres;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user