mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
xfree86: drivers: geode: call GXRandRSetConfig() directly
No need to do funny linker tricks to call GXRandRSetConfig() via dynamically resolved symbols. We can call it directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -390,7 +390,7 @@ void GXShowCursor(ScrnInfoPtr pScrni);
|
||||
/* gx_randr.c */
|
||||
Rotation GXGetRotation(ScreenPtr pScreen);
|
||||
Bool GXRandRInit(ScreenPtr pScreen, int rotation);
|
||||
extern _X_EXPORT Bool GXRandRSetConfig(ScreenPtr pScreen, Rotation rotation,
|
||||
Bool GXRandRSetConfig(ScreenPtr pScreen, Rotation rotation,
|
||||
int rate, RRScreenSizePtr pSize);
|
||||
|
||||
/* gx_rotate.c */
|
||||
|
||||
@@ -1110,11 +1110,7 @@ GXCreateScreenResources(ScreenPtr pScreen)
|
||||
if (!(*pScreen->CreateScreenResources) (pScreen))
|
||||
return FALSE;
|
||||
|
||||
if (xf86LoaderCheckSymbol("GXRandRSetConfig")
|
||||
&& pGeode->rotation != RR_Rotate_0) {
|
||||
Rotation(*GXRandRSetConfig) (ScreenPtr pScreen, Rotation rr, int rate,
|
||||
RRScreenSizePtr pSize) = NULL;
|
||||
|
||||
if (pGeode->rotation != RR_Rotate_0) {
|
||||
RRScreenSize p;
|
||||
Rotation requestedRotation = pGeode->rotation;
|
||||
|
||||
@@ -1127,12 +1123,9 @@ GXCreateScreenResources(ScreenPtr pScreen)
|
||||
p.mmWidth = pScreen->mmWidth;
|
||||
p.mmHeight = pScreen->mmHeight;
|
||||
|
||||
GXRandRSetConfig = LoaderSymbol("GXRandRSetConfig");
|
||||
if (GXRandRSetConfig) {
|
||||
pGeode->starting = TRUE;
|
||||
(*GXRandRSetConfig) (pScreen, requestedRotation, 0, &p);
|
||||
pGeode->starting = FALSE;
|
||||
}
|
||||
pGeode->starting = TRUE;
|
||||
GXRandRSetConfig(pScreen, requestedRotation, 0, &p);
|
||||
pGeode->starting = FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user