|
From: James S. <jsi...@ac...> - 2000-06-05 01:46:21
|
> Okay ... has anybody tested vfb.c? I didn't. If it works, I don't know how,
> because it computes the memory size with get_line_length() to test:
Okay I found out what this code does. I have placed the code with comments
in CVS. Here is the explanation:
static u_long get_line_length(int xres_virtual, int bpp)
{
u_long length;
/* Calculate number of bits per display line */
length = xres_virtual * bpp;
/* Round up to a multiple of 32 */
length = (length+31)&~31;
/* Convert number of bits to number of bytes */
length >>= 3;
return(length);
}
|