]> Joshua Wise's Git repositories - netwatch.git/blobdiff - video/generic.c
Remove demapper from pagingstub.c, since that code is now elsewhere. Correct locatio...
[netwatch.git] / video / generic.c
index 8c6866d4bcad7ea9a65d1b4c8e13d95057ab5df4..c35cd5dd14cd9fd31efaa8b34d7eaf0f867faca4 100644 (file)
@@ -1,3 +1,13 @@
+/* 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>
@@ -17,7 +27,7 @@ uint32_t checksum_rect_generic32(int x, int y, int width, int height) {
         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;
This page took 0.025736 seconds and 4 git commands to generate.