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

Submitted by Yaniv Kaul on Aug. 3, 2011, 6:35 p.m.

Details

Message ID 4E393286.3030905@redhat.com
State New, archived
Headers show

Not browsing as part of any series.

Commit Message

Yaniv Kaul Aug. 3, 2011, 6:35 p.m.
For WinQXL:

Patch hide | download patch | download mbox

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)