summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann <ssp@redhat.com>2010-09-27 06:55:50 -0400
committerSøren Sandmann <ssp@redhat.com>2010-09-27 06:55:50 -0400
commit4c59498c7f719105e680a5039241bd184b22e6b2 (patch)
tree75dec5b02434f802f6b31bd7889ce50408cc9418
parent398f672c6a0719180fc447478acb02b8c589f0ae (diff)
Enable solid fills for surfaces
-rw-r--r--src/qxl_surface.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index ade047e..5a58a31 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -746,10 +746,8 @@ Bool
qxl_surface_prepare_solid (qxl_surface_t *destination,
Pixel fg)
{
- if (destination->id != 0)
- return FALSE;
-
- destination->u.solid_pixel = fg;
+ destination->u.solid_pixel = fg ^ (rand() >> 16);
+
return TRUE;
}
@@ -778,11 +776,8 @@ qxl_surface_prepare_copy (qxl_surface_t *dest,
qxl_surface_t *source)
{
if (source->id != 0)
- {
- /* ErrorF ("bad surface\n"); */
return FALSE;
- }
-
+
dest->u.copy_src = source;
return TRUE;
}