Patchwork [2/2] Remove #ifdef QXL_COMMAND_FLAG_COMPAT_16BPP

login
register
mail settings
Submitter Søren Sandmann
Date Sept. 4, 2012, 2:14 p.m.
Message ID <1346768089-14774-2-git-send-email-sandmann@cs.au.dk>
Download mbox | patch
Permalink /patch/181579/
State New
Headers show

Comments

Søren Sandmann - Sept. 4, 2012, 2:14 p.m.
From: Søren Sandmann Pedersen <ssp@redhat.com>

We require spice >= 0.8 now, so this flag is always present.

Signed-off-by: Soren Sandmann <ssp@redhat.com>
---
 hw/qxl.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/qxl.c b/hw/qxl.c
index 572daa9..57e6536 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1315,11 +1315,9 @@  static void qxl_set_mode(PCIQXLDevice *d, int modenr, int loadvm)
 
     d->mode = QXL_MODE_COMPAT;
     d->cmdflags = QXL_COMMAND_FLAG_COMPAT;
-#ifdef QXL_COMMAND_FLAG_COMPAT_16BPP /* new in spice 0.6.1 */
     if (mode->bits == 16) {
         d->cmdflags |= QXL_COMMAND_FLAG_COMPAT_16BPP;
     }
-#endif
     d->shadow_rom.mode = cpu_to_le32(modenr);
     d->rom->mode = cpu_to_le32(modenr);
     qxl_rom_set_dirty(d);