summaryrefslogtreecommitdiff
path: root/src/g80_display.h
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2007-07-13 13:17:52 -0700
committerAaron Plattner <aaron@weasel.nvidia.com>2007-07-13 13:19:15 -0700
commitf0ebb42ee94eac4b294d12d02f4406a444b347ff (patch)
treebb2dadeb8583dc2630767e743a1c777c129b716a /src/g80_display.h
parentec78618d685759a39d386e9929661037b167fe68 (diff)
G80: Add an LVDS flat panel scaling property.
This property controls how non-native resolutions are scaled to the native resolution. Valid values are: * center: 1:1 pixel ratio with black borders to center the image. * fill: Scale image to the native resolution. * aspect: Scale image to fit the screen, adding black bars to preserve square pixels. Defaults to "aspect". Change with "xrandr --output LVDS --set scale <foo>".
Diffstat (limited to 'src/g80_display.h')
-rw-r--r--src/g80_display.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/g80_display.h b/src/g80_display.h
index 4ab1d55..8bd3bfb 100644
--- a/src/g80_display.h
+++ b/src/g80_display.h
@@ -1,3 +1,9 @@
+enum G80ScaleMode {
+ G80_SCALE_ASPECT,
+ G80_SCALE_FILL,
+ G80_SCALE_CENTER,
+};
+
Bool G80DispPreInit(ScrnInfoPtr);
Bool G80DispInit(ScrnInfoPtr);
void G80DispShutdown(ScrnInfoPtr);
@@ -13,5 +19,6 @@ void G80CrtcDisableCursor(xf86CrtcPtr, Bool update);
void G80CrtcSetCursorPosition(xf86CrtcPtr, int x, int y);
void G80CrtcSkipModeFixup(xf86CrtcPtr);
void G80CrtcSetDither(xf86CrtcPtr, Bool dither, Bool update);
+void G80CrtcSetScale(xf86CrtcPtr, DisplayModePtr, enum G80ScaleMode, Bool update);
void G80DispCreateCrtcs(ScrnInfoPtr pScrn);