summaryrefslogtreecommitdiff
path: root/src/gx_randr.c
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2008-03-11 16:21:58 -0600
committerJordan Crouse <jordan.crouse@amd.com>2008-03-14 14:16:42 -0600
commit1fd63467e3fa71f289f80dba013046d0065ff3f3 (patch)
tree7fb9b02c9c387818ece447b82ad2d183d423cd15 /src/gx_randr.c
parentec8edd1393f482ca42b401463f0f09580aa263a0 (diff)
Massive coding style fixup - move to X coding style,
remove trailing whitespace, zap unused files and remove blocks of ifdefed out code.
Diffstat (limited to 'src/gx_randr.c')
-rw-r--r--src/gx_randr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gx_randr.c b/src/gx_randr.c
index 9ab446f..98a86f7 100644
--- a/src/gx_randr.c
+++ b/src/gx_randr.c
@@ -2,7 +2,7 @@
* Copyright (C) 2002 Keith Packard, member of The XFree86 Project, Inc.
* Copyright (c) 2006 Advanced Micro Devices, Inc.
- *
+ *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
@@ -60,14 +60,15 @@ typedef struct _GXRandRInfo
#if AMD_OLDPRIV
static int GXRandRIndex;
+
#define XF86RANDRINFO(p) ((XF86RandRInfoPtr) (p)->devPrivates[GXRandRIndex].ptr)
#else
static DevPrivateKey GXRandRKey;
+
#define XF86RANDRINFO(p) ((XF86RandRInfoPtr) \
dixLookupPrivate(&(p)->devPrivates, GXRandRKey));
-
#endif
static int
@@ -208,7 +209,7 @@ GXRandRSetMode(ScreenPtr pScreen,
* Get the new Screen pixmap ptr as SwitchMode might have called
* ModifyPixmapHeader and xf86EnableDisableFBAccess will put it back...
* Unfortunately.
-
+
*/
pspix = (*pScreen->GetScreenPixmap) (pScreen);
@@ -314,7 +315,6 @@ GXRandRInit(ScreenPtr pScreen, int rotation)
if (GXRandRGeneration != serverGeneration) {
GXRandRGeneration = serverGeneration;
}
-
#if AMD_OLDPRIV
GXRandRIndex = AllocateScreenPrivateIndex();
#else