mi: make SetInstalledmiColormap() a static inline function
Add some type safety by converting the macro into static inline function. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
4be15a7207
commit
f244180eba
|
@ -22,8 +22,9 @@
|
|||
#include "mi/mi.h"
|
||||
#include "mi/micmap.h"
|
||||
|
||||
#define SetInstalledmiColormap(s,c) \
|
||||
(dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c))
|
||||
static inline void SetInstalledmiColormap(ScreenPtr s, ColormapPtr c) {
|
||||
dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c);
|
||||
}
|
||||
|
||||
static inline ColormapPtr GetInstalledmiColormap(ScreenPtr s) {
|
||||
return (ColormapPtr)dixLookupPrivate(&(s)->devPrivates, &micmapScrPrivateKeyRec);
|
||||
|
|
Loading…
Reference in New Issue