diff options
author | Søren Sandmann <ssp@localhost.localdomain> | 2010-11-16 11:40:29 -0500 |
---|---|---|
committer | Søren Sandmann <ssp@localhost.localdomain> | 2010-11-16 11:40:29 -0500 |
commit | 4b5dcd51ed360e69684f4190792ad5c488176eda (patch) | |
tree | 56f21a8bfe08f40ddf99a3910bfc38c36b3d427c | |
parent | 5a5670d6d5f37f0ed58c0690e04dc7daaff0af78 (diff) |
asdf
-rw-r--r-- | src/qxl_surface.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qxl_surface.c b/src/qxl_surface.c index f02931a..0abea2e 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@ -859,8 +859,12 @@ qxl_surface_kill (qxl_surface_t *surface) surface->bpp); #endif - if (surface->id != 0) + if (surface->id != 0 && + pixman_image_get_width (surface->host_image) > 128 && + pixman_image_get_height (surface->host_image) > 128) + { surface_add_to_cache (surface); + } #if 0 ErrorF ("After adding %d to cache\n", surface->id); |