Re: [patch] bogl memset_var for 32 bpp screen
On Thu, Jan 18, 2001 at 05:33:43PM -0500, firstname.lastname@example.org wrote:
> Sorry for not being clear - yes, I know that bterm has the same bug.
> I'd appreciate it if someone on this list would look into using the
> bogl and bterm in that package, so that we can scrap the one in
> debian-boot CVS; having both makes me nervous about lost work.
I see. I attached the small patch against the bogl-bterm in unstable.
And could you also take a look at Chuan-kai Lin's reversed video patch?
--- bogl-cfb.c.orig Fri Jan 19 11:48:32 2001
+++ bogl-cfb.c Fri Jan 19 11:49:17 2001
@@ -63,7 +63,7 @@
/* Size of an "unsigned int" in pixels:
== sizeof(unsigned int) / b / 8 */
const int intsiz = sizeof(unsigned int) * 8 / b;
- const int mask = (1 << b) - 1;
+ const int mask = ((long long)1 << b) - 1;
unsigned int fill;
/* MUST be signed! */