From: Christian H. <ch...@os...> - 2000-05-30 15:11:05
|
Hi, maybe I'm a bit confused, but I don't understand this piece of code: -------- vfb.c --- L469 -------- static u_long get_line_length(int xres_virtual, int bpp) { u_long length; length = (xres_virtual+bpp-1)/bpp; length = (length+31)&-32; length >>= 3; return(length); } -------------------------------- What is/should be the return value? 32 bit aligned bytes? I thought: length = (xres + bpp-1) * bpp; would be right. But, as I mentioned, I'm a bit confused ;-) Christian. |