VGA_HPEL_NEUTRAL is the pel panning value that means no shift. Move it
to the header so that other VGA devices can use it.

No functional change.

Signed-off-by: Jamin Lin <[email protected]>
---
 hw/display/vga_int.h | 8 ++++++++
 hw/display/vga.c     | 7 -------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/hw/display/vga_int.h b/hw/display/vga_int.h
index 68f082acba..978b05e7eb 100644
--- a/hw/display/vga_int.h
+++ b/hw/display/vga_int.h
@@ -38,6 +38,14 @@
 #define CH_ATTR_SIZE (160 * 100)
 #define VGA_MAX_HEIGHT 2048
 
+/*
+ * This value corresponds to a shift of zero pixels
+ * in 9-dot text mode.  In other modes, bit 3 is undefined;
+ * we just ignore it, so that 8 corresponds to zero pixels
+ * in all modes.
+ */
+#define VGA_HPEL_NEUTRAL 8
+
 struct vga_precise_retrace {
     int64_t ticks_per_char;
     int64_t total_chars;
diff --git a/hw/display/vga.c b/hw/display/vga.c
index b273244cd5..b951d84736 100644
--- a/hw/display/vga.c
+++ b/hw/display/vga.c
@@ -53,13 +53,6 @@ bool have_vga = true;
 /* Address mask for non-VESA modes.  */
 #define VGA_VRAM_SIZE                   (256 * KiB)
 
-/* This value corresponds to a shift of zero pixels
- * in 9-dot text mode.  In other modes, bit 3 is undefined;
- * we just ignore it, so that 8 corresponds to zero pixels
- * in all modes.
- */
-#define VGA_HPEL_NEUTRAL               8
-
 /*
  * Video Graphics Array (VGA)
  *
-- 
2.53.0

Reply via email to