summaryrefslogtreecommitdiff
path: root/src/g80_display.h
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2007-07-24 20:36:04 -0700
committerAaron Plattner <aaron@weasel.nvidia.com>2007-07-24 20:36:04 -0700
commit08b68473351081fe1ed96ba7e206ed0d301b8a91 (patch)
treedaa06fca777bb68abb66d8b124d0c533edc5109f /src/g80_display.h
parentf0ebb42ee94eac4b294d12d02f4406a444b347ff (diff)
G80: Allow DVI scaling.
Revamp how the scaling code works. When a mode is set on a DVI output, determine the current preferred mode and scale to that. Add a new scaling option, "off", which disables scaling and scans out the actual timings in the mode to be set.
Diffstat (limited to 'src/g80_display.h')
-rw-r--r--src/g80_display.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/g80_display.h b/src/g80_display.h
index 8bd3bfb..2031fed 100644
--- a/src/g80_display.h
+++ b/src/g80_display.h
@@ -1,4 +1,5 @@
enum G80ScaleMode {
+ G80_SCALE_OFF,
G80_SCALE_ASPECT,
G80_SCALE_FILL,
G80_SCALE_CENTER,
@@ -13,12 +14,13 @@ void G80DispCommand(ScrnInfoPtr, CARD32 addr, CARD32 data);
Head G80CrtcGetHead(xf86CrtcPtr);
+void G80CrtcDoModeFixup(DisplayModePtr dst, const DisplayModePtr src);
void G80CrtcBlankScreen(xf86CrtcPtr, Bool blank);
void G80CrtcEnableCursor(xf86CrtcPtr, Bool update);
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 G80CrtcSetScale(xf86CrtcPtr, DisplayModePtr, enum G80ScaleMode);
void G80DispCreateCrtcs(ScrnInfoPtr pScrn);