summaryrefslogtreecommitdiff
path: root/src/radeon_modes.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-01-28 13:13:13 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-01-28 13:13:13 -0500
commit4f88dd83f290fb38e41256a7f1804008c0f28139 (patch)
tree5dbc7f56e4ec4b14f6150480d6e015d87ea2292a /src/radeon_modes.c
parent1c5678fc452dbc93135e9ece50a4cff6583f6078 (diff)
parent2ca970c7aa1f3f212f03bf3287d6b60eeafd68ae (diff)
Merge branch 'atom-tvout' of ssh://agd5f@git.freedesktop.org/git/xorg/driver/xf86-video-ati
Conflicts: src/radeon_atombios.c
Diffstat (limited to 'src/radeon_modes.c')
-rw-r--r--src/radeon_modes.c25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/radeon_modes.c b/src/radeon_modes.c
index 5cd4e296..ed2fee20 100644
--- a/src/radeon_modes.c
+++ b/src/radeon_modes.c
@@ -95,36 +95,19 @@ RADEONTVModes(xf86OutputPtr output)
static DisplayModePtr
RADEONATOMTVModes(xf86OutputPtr output)
{
- RADEONOutputPrivatePtr radeon_output = output->driver_private;
DisplayModePtr last = NULL;
DisplayModePtr new = NULL;
DisplayModePtr first = NULL;
- int max_v, i;
+ int i;
/* Add some common sizes */
- int widths[5] = {640, 720, 800, 848, 1024};
-
- if (radeon_output->tvStd == TV_STD_NTSC ||
- radeon_output->tvStd == TV_STD_NTSC_J ||
- radeon_output->tvStd == TV_STD_PAL_M)
- max_v = 480;
- else
- max_v = 600;
+ int widths[5] = {640, 720, 800, 848, 1024};
+ int heights[5] = {480, 480, 600, 480, 768};
for (i = 0; i < 5; i++) {
- new = xf86CVTMode(widths[i], max_v, 60.0, FALSE, FALSE);
+ new = xf86CVTMode(widths[i], heights[i], 60.0, FALSE, FALSE);
new->type = M_T_DRIVER;
- if (radeon_output->tvStd == TV_STD_NTSC ||
- radeon_output->tvStd == TV_STD_NTSC_J ||
- radeon_output->tvStd == TV_STD_PAL_M) {
- if (widths[i] == 640)
- new->type |= M_T_PREFERRED;
- } else {
- if (widths[i] == 800)
- new->type |= M_T_PREFERRED;
- }
-
new->next = NULL;
new->prev = last;