diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-07-09 10:36:12 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-07-09 16:13:03 -0700 |
commit | 02b11509b25686ff7bd567ecb78a435701edc4c2 (patch) | |
tree | e57981847f7b1c4009efa5c61053e3cab34fe1d3 | |
parent | 2307ab5bc9365ebbe04568edb7c7620a23689b70 (diff) |
miModifyPixmapHeader: always update serialNumber
We should update the serial number even if we just change a single field.
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | mi/miscrinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/miscrinit.c b/mi/miscrinit.c index ea2a0c1cd..661ecb239 100644 --- a/mi/miscrinit.c +++ b/mi/miscrinit.c @@ -76,7 +76,6 @@ miModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth, pPixmap->drawable.depth = depth; pPixmap->drawable.bitsPerPixel = bitsPerPixel; pPixmap->drawable.id = 0; - pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER; pPixmap->drawable.x = 0; pPixmap->drawable.y = 0; pPixmap->drawable.width = width; @@ -116,6 +115,7 @@ miModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth, if (pPixData) pPixmap->devPrivate.ptr = pPixData; } + pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER; return TRUE; } |