summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2006-02-01 22:20:05 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2006-02-01 22:20:05 +0000
commit2ab487d4d20e4e34e73cc6d87f41bf0836c7a8af (patch)
treee2e5c1cc6815566cadc4ca037ac28d8427b53e11 /randr
parentf4898b409376803c9a9dd8475bdd5576ff1cc59d (diff)
Add a new function RRGetRotation() which does exactly the same thing as
xf86GetRotation(), but allows for drivers to provide their own RandR implementation. xf86GetRotation could be obsoleted by this change.
Diffstat (limited to 'randr')
-rw-r--r--randr/randr.c11
-rw-r--r--randr/randrstr.h3
2 files changed, 14 insertions, 0 deletions
diff --git a/randr/randr.c b/randr/randr.c
index 3911a3498..a0e49ab15 100644
--- a/randr/randr.c
+++ b/randr/randr.c
@@ -1302,6 +1302,17 @@ Bool RRRegisterRate (ScreenPtr pScreen,
return TRUE;
}
+Rotation
+RRGetRotation(ScreenPtr pScreen)
+{
+ rrScrPriv (pScreen);
+
+ if (!pScrPriv)
+ return RR_Rotate_0;
+
+ return pScrPriv->rotation;
+}
+
void
RRSetCurrentConfig (ScreenPtr pScreen,
Rotation rotation,
diff --git a/randr/randrstr.h b/randr/randrstr.h
index cd4ce3846..9dfc71efe 100644
--- a/randr/randrstr.h
+++ b/randr/randrstr.h
@@ -118,6 +118,9 @@ RRSetCurrentConfig (ScreenPtr pScreen,
Bool RRScreenInit(ScreenPtr pScreen);
+Rotation
+RRGetRotation (ScreenPtr pScreen);
+
int
RRSetScreenConfig (ScreenPtr pScreen,
Rotation rotation,