But current users of cyblafb will be affected if your patchThey definitely will be affected when they lock their system
does have a problem.
The graphics engine would not react kindly, and it does not really hurt.+ // That should never happen, but it would be fatal
It won't :-)
Yes, I am a bit paranoid. That paranoia led to the discovery of some bugs+ if (image->width == 0 || image->height == 0) {Why this paranoid check? The check_var() function already
+ output("imageblit: width/height 0 detected\n");
+ return;
+ }
+
+ if (bpp < 8 || bpp > 32 || bpp % 8 != 0 ||
+ info->pixmap.scan_align > 4 ) {
guaranteed that these conditions will not happen.
Do you really have to support scan_align 1 and 2? Why not just stickWell, you are shure that there is really not a single bug left in the bitmap construction
with scan_align of 4, the code is so much easier to understand? I can't
find anything useful with this, even for debugging.
Do you really think that this is a good idea? I would like to ease the use of+ // try to be smart about (x|y)res(_virtual) problems.
+ //
+ if (var->xres % 8 != 0)
return -EINVAL;
Isn't this too much? Why not var->xres = (var->xres + 7) & ~7?
Yes. That saves a few bytes.+ if (var->xres_virtual % 8 != 0)
+ var->xres_virtual &= ~7;
Or just var->xres_virtual &= ~7 without the if (...)
Wrong boolean check? Should be if (vesafb & 4). Or might asNo, no, no, no.
well get rid of this check, it's redundant.
Shouldn't this be if (vesafb & 4)?
and this...
and this...?