]> Joshua Wise's Git repositories - netwatch.git/commitdiff
Fix modulo issues in vga-overlay
authorJoshua Wise <joshua@nyus.joshuawise.com>
Sun, 7 Dec 2008 11:17:26 +0000 (06:17 -0500)
committerJoshua Wise <joshua@nyus.joshuawise.com>
Sun, 7 Dec 2008 11:17:26 +0000 (06:17 -0500)
aseg-paging/vga-overlay.c

index e6e223c073d9238fd7af4fed5fda3c391aacf90e..f7d7bf4f0bdad131abfcac3e7a1a90a3d7b93b04 100644 (file)
@@ -74,7 +74,7 @@ void outlog()
        int y;
 
        for (y = -LOG_ONSCREEN; y < 0; y++)
-               strblit(logents[(y + prodptr) % LOGLEN], y + LOG_ONSCREEN, 40, 1);
+               strblit(logents[(y + prodptr + LOGLEN) % LOGLEN], y + LOG_ONSCREEN, 40, 1);
 }
 
 void dolog(const char *s)
@@ -112,4 +112,3 @@ void (*outputf)(const char *s, ...) = dologf;
 void dump_log (char * target) {
        memcpy(target, logents, sizeof(logents));
 }
-
This page took 0.02621 seconds and 4 git commands to generate.