summaryrefslogtreecommitdiff
path: root/dbe
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-05-15 14:52:39 -0700
committerKeith Packard <keithp@keithp.com>2010-06-05 19:11:32 -0700
commit431781a921251d54782f0a4f194bbef1fabd1380 (patch)
tree474de8723f4d328709c5d92c4df68263cb4fec96 /dbe
parent7ef612de784daaed09ba13f4615c10714614033f (diff)
Remove dixRegisterPrivateOffset; hard-code devPrivates offsets instead
For predefined resource types, the offset of the devPrivates field was already kept in a constant table. The only non-predefined type needing this treatment was dbeDrawableResType, which is just a magic alias for RT_PIXMAP. This patch special-cases looking up RC_DRAWABLE offsets and uses the table directly for everything else. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
Diffstat (limited to 'dbe')
-rw-r--r--dbe/dbe.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/dbe/dbe.c b/dbe/dbe.c
index fba10d689..9b5474c81 100644
--- a/dbe/dbe.c
+++ b/dbe/dbe.c
@@ -1576,10 +1576,6 @@ DbeExtensionInit(void)
if (!dbeWindowPrivResType)
return;
- if (!dixRegisterPrivateOffset(dbeDrawableResType,
- offsetof(PixmapRec, devPrivates)))
- return;
-
for (i = 0; i < screenInfo.numScreens; i++)
{
/* For each screen, set up DBE screen privates and init DIX and DDX