summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--hw/vga_template.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vga_template.h b/hw/vga_template.h
index 721abcb828..349d588586 100644
--- a/hw/vga_template.h
+++ b/hw/vga_template.h
@@ -497,7 +497,7 @@ void glue(vga_draw_cursor_line_, DEPTH)(uint8_t *d1,
 #else
 #error unsupported depth
 #endif
-        d += (DEPTH / 8);
+        d += BPP;
     }
 }
 #endif