fix exaInitCard by making it a real function
This commit is contained in:
parent
088e5768fa
commit
e7f0b84fa7
16
exa/exa.c
16
exa/exa.c
|
@ -433,3 +433,19 @@ unsigned int exaGetVersion(void)
|
||||||
{
|
{
|
||||||
return EXA_VERSION;
|
return EXA_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void exaInitCard(ExaDriverPtr exa, int needsSync, CARD8 *memory_base,
|
||||||
|
unsigned long off_screen_base, unsigned long memory_size,
|
||||||
|
int offscreen_byte_align, int offscreen_pitch, int flags,
|
||||||
|
int max_x, int max_y)
|
||||||
|
{
|
||||||
|
exa->card.needsSync = needsSync;
|
||||||
|
exa->card.memoryBase = memory_base;
|
||||||
|
exa->card.offScreenBase = off_screen_base;
|
||||||
|
exa->card.memorySize = memory_size;
|
||||||
|
exa->card.pixmapOffsetAlign = offscreen_byte_align;
|
||||||
|
exa->card.pixmapPitchAlign = offscreen_pitch;
|
||||||
|
exa->card.flags = flags;
|
||||||
|
exa->card.maxX = max_x;
|
||||||
|
exa->card.maxY = max_y;
|
||||||
|
}
|
||||||
|
|
17
exa/exa.h
17
exa/exa.h
|
@ -252,17 +252,10 @@ exaGetPixmapSize(PixmapPtr pPix);
|
||||||
void
|
void
|
||||||
exaEnableDisableFBAccess (int index, Bool enable);
|
exaEnableDisableFBAccess (int index, Bool enable);
|
||||||
|
|
||||||
#define exaInitCard(exa, sync, memory_base, off_screen_base, memory_size, \
|
void
|
||||||
offscreen_byte_align, offscreen_pitch, flags, \
|
exaInitCard(ExaDriverPtr exa, int needsSync, CARD8 *memory_base,
|
||||||
max_x, max_y) \
|
unsigned long off_screen_base, unsigned long memory_size,
|
||||||
(exa)->card.Sync = sync; \
|
int offscreen_byte_align, int offscreen_pitch, int flags,
|
||||||
(exa)->card.memoryBase = memory_base; \
|
int max_x, int max_y);
|
||||||
(exa)->card.offScreenBase = off_screen_base; \
|
|
||||||
(exa)->card.memorySize = memory_size; \
|
|
||||||
(exa)->card.offscreenByteAlign = offscreen_byte_align; \
|
|
||||||
(exa)->card.offscreenPitch = offscreen_pitch; \
|
|
||||||
(exa)->card.flags = flags; \
|
|
||||||
(exa)->card.maxX = max_x; \
|
|
||||||
(exa)->card.maxY = max_y
|
|
||||||
|
|
||||||
#endif /* EXA_H */
|
#endif /* EXA_H */
|
||||||
|
|
Loading…
Reference in New Issue