diff options
author | Keith Packard <keithp@keithp.com> | 2010-05-15 14:52:39 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-06-05 19:11:32 -0700 |
commit | 431781a921251d54782f0a4f194bbef1fabd1380 (patch) | |
tree | 474de8723f4d328709c5d92c4df68263cb4fec96 /dbe | |
parent | 7ef612de784daaed09ba13f4615c10714614033f (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.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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 |