+/* generic.c
+ * Helper functions for dealing with generic RGB888 framebuffers
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
#include <stdint.h>
#include <fb.h>
#include <crc32.h>
for (i = 0; i < height; i++) {
lineaddr = fb->fbaddr + (i + y) * scanline + (4 * x);
- sum ^= crc32(lineaddr, width * 4);
+ sum = crc32(lineaddr, width * 4, sum);
}
return sum;