summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2004-08-09 03:40:50 +0000
committerKristian Høgsberg <krh@redhat.com>2004-08-09 03:40:50 +0000
commit26847ef9268f687c4f45f3d048eff4b06c2ba3bf (patch)
tree2c98a96c233d3747cb542472c182682e6406d486 /fb
parent57eab4dc87670da42e645a4c341d1ee661b43b5b (diff)
Move the new render symbols to dixsym.c instead so they are grouped with
the other render symbols. Initialize screen_x and screen_y to 0. This fixes a problem with the new Damage based sprite, where intersection test against the root pixmap would fail because the two fields were not initialized (damage.c, 166-170).
Diffstat (limited to 'fb')
-rw-r--r--fb/fbpixmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fb/fbpixmap.c b/fb/fbpixmap.c
index e47999dbb..e3abf2b4c 100644
--- a/fb/fbpixmap.c
+++ b/fb/fbpixmap.c
@@ -73,6 +73,11 @@ fbCreatePixmapBpp (ScreenPtr pScreen, int width, int height, int depth, int bpp)
fbInitializeDrawable (&pPixmap->drawable);
#endif
+#ifdef COMPOSITE
+ pPixmap->screen_x = 0;
+ pPixmap->screen_y = 0;
+#endif
+
return pPixmap;
}