[Spice-devel] [patch] [typo] NASKE -> MASK (WinQXL)

Yaniv Kaul ykaul at redhat.com
Wed Aug 3 04:35:34 PDT 2011


For WinQXL:

diff --git a/display/qxldd.h b/display/qxldd.h
index 9b613c1..7ee8896 100644
--- a/display/qxldd.h
+++ b/display/qxldd.h
@@ -89,11 +89,11 @@ typedef struct Ring {

  #define CURSOR_CACHE_SIZE (1 << 6)
  #define CURSOR_HASH_SIZE (CURSOR_CACHE_SIZE << 1)
-#define CURSOR_HASH_NASKE (CURSOR_HASH_SIZE - 1)
+#define CURSOR_HASH_MASK (CURSOR_HASH_SIZE - 1)

  #define PALETTE_CACHE_SIZE (1 << 6)
  #define PALETTE_HASH_SIZE (PALETTE_CACHE_SIZE << 1)
-#define PALETTE_HASH_NASKE (PALETTE_HASH_SIZE - 1)
+#define PALETTE_HASH_MASK (PALETTE_HASH_SIZE - 1)

  //#define CALL_TEST

diff --git a/display/res.c b/display/res.c
index 5d28184..2dd7d3f 100644
--- a/display/res.c
+++ b/display/res.c
@@ -1581,7 +1581,7 @@ typedef struct InternalPalette {
      QXLPalette palette;
  } InternalPalette;

-#define PALETTE_HASH_VAL(unique) ((int)(unique) & PALETTE_HASH_NASKE)
+#define PALETTE_HASH_VAL(unique) ((int)(unique) & PALETTE_HASH_MASK)

  static _inline void ReleasePalette(PDev *pdev, InternalPalette *palette)
  {
@@ -2935,7 +2935,7 @@ typedef struct InternalCursor {
  } InternalCursor;


-#define CURSOR_HASH_VAL(hsurf) (HSURF_HASH_VAL(hsurf) & CURSOR_HASH_NASKE)
+#define CURSOR_HASH_VAL(hsurf) (HSURF_HASH_VAL(hsurf) & CURSOR_HASH_MASK)

  /* Called with cursor_cache_sem held */
  static void CursorCacheRemove(PDev *pdev, InternalCursor *cursor)


More information about the Spice-devel mailing list