[Spice-devel] [PATCH 14/17] Fix typos Chach -> Cache

alexl at redhat.com alexl at redhat.com
Tue Sep 14 12:09:04 PDT 2010


From: Alexander Larsson <alexl at redhat.com>

---
 display/res.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/display/res.c b/display/res.c
index 18b2033..1785f02 100644
--- a/display/res.c
+++ b/display/res.c
@@ -1905,7 +1905,7 @@ static _inline UINT32 GetFormatLineSize(INT32 width, ULONG bitmap_format, UINT8
     }
 }
 
-static BOOL ChachSizeTest(PDev *pdev, SURFOBJ *surf)
+static BOOL CacheSizeTest(PDev *pdev, SURFOBJ *surf)
 {
     BOOL ret = (UINT32)surf->sizlBitmap.cx * surf->sizlBitmap.cy <= pdev->max_bitmap_size;
     if (!ret) {
@@ -1978,7 +1978,7 @@ BOOL QXLCheckIfCacheImage(PDev *pdev, SURFOBJ *surf, XLATEOBJ *color_trans)
     return FALSE;
 }
 
-static CacheImage *GetChachImage(PDev *pdev, SURFOBJ *surf, XLATEOBJ *color_trans, int high_bits_set, UINT32 *hash_key)
+static CacheImage *GetCacheImage(PDev *pdev, SURFOBJ *surf, XLATEOBJ *color_trans, int high_bits_set, UINT32 *hash_key)
 {
     CacheImage *cache_image;
     UINT64 gdi_unique;
@@ -2015,7 +2015,7 @@ static CacheImage *GetChachImage(PDev *pdev, SURFOBJ *surf, XLATEOBJ *color_tran
         return cache_image;
     }
 
-    if (ChachSizeTest(pdev, surf)) {
+    if (CacheSizeTest(pdev, surf)) {
         CacheImage *cache_image = AllocCacheImage(pdev);
         ImageCacheRemove(pdev, cache_image);
         cache_image->key = key;
@@ -2143,7 +2143,7 @@ BOOL QXLGetBitmap(PDev *pdev, QXLDrawable *drawable, QXLPHYSICAL *image_phys, SU
                  surf->iBitmapFormat));
 
     if (use_cache) {
-        cache_image = GetChachImage(pdev, surf, color_trans, high_bits_set, hash_key);
+        cache_image = GetCacheImage(pdev, surf, color_trans, high_bits_set, hash_key);
         if (cache_image && cache_image->image) {
             DEBUG_PRINT((pdev, 11, "%s: cached image found %u\n", __FUNCTION__, cache_image->key));
             internal = cache_image->image;
@@ -2283,7 +2283,7 @@ BOOL QXLGetAlphaBitmap(PDev *pdev, QXLDrawable *drawable, QXLPHYSICAL *image_phy
 
     ASSERT(pdev, surf->iBitmapFormat == BMF_32BPP && surf->iType == STYPE_BITMAP);
 
-    //todo: use GetChachImage
+    //todo: use GetCacheImage
 
     // NOTE: Same BMF_DONTCACHE issue as in QXLGetBitmap
     if (!surf->iUniq || (surf->fjBitmap & BMF_DONTCACHE)) {
@@ -2313,7 +2313,7 @@ BOOL QXLGetAlphaBitmap(PDev *pdev, QXLDrawable *drawable, QXLPHYSICAL *image_phy
             DrawableAddRes(pdev, drawable, image_res);
             return TRUE;
         }
-    } else if (ChachSizeTest(pdev, surf)) {
+    } else if (CacheSizeTest(pdev, surf)) {
         CacheImage *cache_image = AllocCacheImage(pdev);
         ImageCacheRemove(pdev, cache_image);
         cache_image->key = key;
-- 
1.7.2.2



More information about the Spice-devel mailing list