dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame 0503-Remove-ifdef-QXL_COMMAND_FLAG_COMPAT_16BPP.patch

5544c1
From 0dcef831a875505fdaffb824de9e4450273ea53d Mon Sep 17 00:00:00 2001
Hans de Goede c8dfc6
From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= <ssp@redhat.com>
Hans de Goede c8dfc6
Date: Tue, 4 Sep 2012 10:14:49 -0400
5544c1
Subject: [PATCH] Remove #ifdef QXL_COMMAND_FLAG_COMPAT_16BPP
Hans de Goede c8dfc6
Hans de Goede c8dfc6
We require spice >= 0.8 now, so this flag is always present.
Hans de Goede c8dfc6
Hans de Goede c8dfc6
Signed-off-by: Soren Sandmann <ssp@redhat.com>
Hans de Goede c8dfc6
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Hans de Goede c8dfc6
---
Hans de Goede c8dfc6
 hw/qxl.c | 2 --
Hans de Goede c8dfc6
 1 file changed, 2 deletions(-)
Hans de Goede c8dfc6
Hans de Goede c8dfc6
diff --git a/hw/qxl.c b/hw/qxl.c
5544c1
index d8b67b2..a6e6cf1 100644
Hans de Goede c8dfc6
--- a/hw/qxl.c
Hans de Goede c8dfc6
+++ b/hw/qxl.c
5544c1
@@ -1361,11 +1361,9 @@ static void qxl_set_mode(PCIQXLDevice *d, int modenr, int loadvm)
Hans de Goede c8dfc6
 
Hans de Goede c8dfc6
     d->mode = QXL_MODE_COMPAT;
Hans de Goede c8dfc6
     d->cmdflags = QXL_COMMAND_FLAG_COMPAT;
Hans de Goede c8dfc6
-#ifdef QXL_COMMAND_FLAG_COMPAT_16BPP /* new in spice 0.6.1 */
Hans de Goede c8dfc6
     if (mode->bits == 16) {
Hans de Goede c8dfc6
         d->cmdflags |= QXL_COMMAND_FLAG_COMPAT_16BPP;
Hans de Goede c8dfc6
     }
Hans de Goede c8dfc6
-#endif
Hans de Goede c8dfc6
     d->shadow_rom.mode = cpu_to_le32(modenr);
Hans de Goede c8dfc6
     d->rom->mode = cpu_to_le32(modenr);
Hans de Goede c8dfc6
     qxl_rom_set_dirty(d);
Hans de Goede c8dfc6
-- 
5544c1
1.7.12.1
Hans de Goede c8dfc6