diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2006-08-14 17:55:14 +0300 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-01-28 01:24:21 +0200 |
commit | 87cf2f1874ca8a7cc492d2e2b6918ba69a8aa713 (patch) | |
tree | ac278f565376b0fee6d90184c15c26bc44bc4c92 /src/atimach64.c | |
parent | 0b31333c9147af21c50493872779da12a3668e5d (diff) |
Minor refactoring of module (un)loading for TV_OUT.
Diffstat (limited to 'src/atimach64.c')
-rw-r--r-- | src/atimach64.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/atimach64.c b/src/atimach64.c index 24da669f..98eb894d 100644 --- a/src/atimach64.c +++ b/src/atimach64.c @@ -646,15 +646,16 @@ ATIMach64Calculate { pMode->Flags &= ~(V_PHSYNC | V_NHSYNC | V_PVSYNC | V_NVSYNC); - if (pATI->OptionPanelDisplay && (pATI->LCDPanelID >= 0) -#ifdef TV_OUT - && !pATI->tvActive -#endif -) + if (pATI->OptionPanelDisplay && (pATI->LCDPanelID >= 0)) VDisplay = pATI->LCDVertical; else VDisplay = pMode->CrtcVDisplay; +#ifdef TV_OUT + if (pATI->tvActive) + VDisplay = pMode->CrtcVDisplay; +#endif + if (VDisplay < 400) pMode->Flags |= V_PHSYNC | V_NVSYNC; else if (VDisplay < 480) |