summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHunk Cui <Hunk.Cui@amd.com>2010-08-09 18:03:23 +0800
committerMart Raudsepp <leio@gentoo.org>2010-08-09 13:26:36 +0300
commitfe6ad5942bf3d638bee2e6979f60d9d7128ba1e8 (patch)
treeee54d5f049d1098164b4fdf6be426d451e39f741 /src
parent1f96e74919fe9442062804de785c6e1008d75bf2 (diff)
Rectify lx_display.c outstanding compiler warnings
*Correct the type of LXAllocShadow from Bool to static Bool. Signed-off-by: Hunk Cui <Hunk.Cui@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/lx_display.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lx_display.c b/src/lx_display.c
index 4f7c4ed..ae1d39f 100644
--- a/src/lx_display.c
+++ b/src/lx_display.c
@@ -368,7 +368,7 @@ lx_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 * red, CARD16 * green,
* of card space is returned.
*/
-Bool
+static Bool
LXAllocShadow(ScrnInfoPtr pScrni, int size)
{
GeodeRec *pGeode = GEODEPTR(pScrni);
@@ -390,6 +390,7 @@ LXAllocShadow(ScrnInfoPtr pScrni, int size)
}
pScrni->fbOffset = pGeode->shadowArea->offset;
+ return TRUE;
}
static void *
@@ -402,9 +403,8 @@ lx_crtc_shadow_allocate(xf86CrtcPtr crtc, int width, int height)
rpitch = pScrni->displayWidth * (pScrni->bitsPerPixel / 8);
size = rpitch * height;
- LXAllocShadow(pScrni, size); /* Allocate shadow memory */
-
- if (pGeode->shadowArea->offset == NULL) {
+ /* Allocate shadow memory */
+ if (LXAllocShadow(pScrni, size) == FALSE) {
xf86DrvMsg(pScrni->scrnIndex, X_ERROR,
"Couldn't allocate the shadow memory for rotation\n");
xf86DrvMsg(pScrni->scrnIndex, X_ERROR,