|
|
9ae3a8 |
From 52c3ce4ea3447ae11bd18184b7659c130ec676df Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Date: Fri, 20 Oct 2017 11:06:16 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 1/7] vga: drop line_offset variable
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Message-id: <20171020110619.2541-9-kraxel@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 77399
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.5 qemu-kvm PATCH 08/11] vga: drop line_offset variable
|
|
|
9ae3a8 |
Bugzilla: 1501295
|
|
|
9ae3a8 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit 362f811793ff6cb4d209ab61d76cc4f841bb5e46)
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/display/vga.c | 5 ++---
|
|
|
9ae3a8 |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/display/vga.c b/hw/display/vga.c
|
|
|
9ae3a8 |
index 5b0b864..dda3f5f 100644
|
|
|
9ae3a8 |
--- a/hw/display/vga.c
|
|
|
9ae3a8 |
+++ b/hw/display/vga.c
|
|
|
9ae3a8 |
@@ -1504,7 +1504,7 @@ static void vga_draw_graphic(VGACommonState *s, int full_update)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
DisplaySurface *surface = qemu_console_surface(s->con);
|
|
|
9ae3a8 |
int y1, y, update, linesize, y_start, double_scan, mask, depth;
|
|
|
9ae3a8 |
- int width, height, shift_control, line_offset, bwidth, bits;
|
|
|
9ae3a8 |
+ int width, height, shift_control, bwidth, bits;
|
|
|
9ae3a8 |
ram_addr_t page0, page1, page_min, page_max;
|
|
|
9ae3a8 |
int disp_width, multi_scan, multi_run;
|
|
|
9ae3a8 |
uint8_t *d;
|
|
|
9ae3a8 |
@@ -1642,7 +1642,6 @@ static void vga_draw_graphic(VGACommonState *s, int full_update)
|
|
|
9ae3a8 |
s->cursor_invalidate(s);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
- line_offset = s->line_offset;
|
|
|
9ae3a8 |
#if 0
|
|
|
9ae3a8 |
printf("w=%d h=%d v=%d line_offset=%d cr[0x09]=0x%02x cr[0x17]=0x%02x linecmp=%d sr[0x01]=0x%02x\n",
|
|
|
9ae3a8 |
width, height, v, line_offset, s->cr[9], s->cr[VGA_CRTC_MODE],
|
|
|
9ae3a8 |
@@ -1697,7 +1696,7 @@ static void vga_draw_graphic(VGACommonState *s, int full_update)
|
|
|
9ae3a8 |
if (!multi_run) {
|
|
|
9ae3a8 |
mask = (s->cr[VGA_CRTC_MODE] & 3) ^ 3;
|
|
|
9ae3a8 |
if ((y1 & mask) == mask)
|
|
|
9ae3a8 |
- addr1 += line_offset;
|
|
|
9ae3a8 |
+ addr1 += s->line_offset;
|
|
|
9ae3a8 |
y1++;
|
|
|
9ae3a8 |
multi_run = multi_scan;
|
|
|
9ae3a8 |
} else {
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|