From c5fe5f2d061e6ee95d7d3280030a5c0fad451c95 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Sun, 2 Oct 2005 08:27:07 +0000 Subject: [PATCH] fixed PAL VCD modesetting validation: actual resolution is 768x576 for 800x600 overscanning mode. Testing with cmd line app 'vidscreen' BTW (matrox driver site, 'tools'). Note, still got to fix NTSC DVD modesetting: aspect check needs to be disabled for TVout.. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14292 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../nvidia/engine/nv_brooktreetv.c | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/add-ons/accelerants/nvidia/engine/nv_brooktreetv.c b/src/add-ons/accelerants/nvidia/engine/nv_brooktreetv.c index 3a28bc2181..82185d5606 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_brooktreetv.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_brooktreetv.c @@ -1278,26 +1278,23 @@ uint8 BT_check_tvmode(display_mode target) switch (mode) { case (640 | (480 << 16)): - if ((target.flags & TV_BITS) == TV_PAL) - { - if (!(target.flags & TV_VIDEO)) status = PAL640; - } + if (((target.flags & TV_BITS) == TV_PAL) && (!(target.flags & TV_VIDEO))) + status = PAL640; if ((target.flags & TV_BITS) == TV_NTSC) { if (!(target.flags & TV_VIDEO)) status = NTSC640; else status = NTSC640_OS; } break; + case (768 | (576 << 16)): + if (((target.flags & TV_BITS) == TV_PAL) && (target.flags & TV_VIDEO)) + status = PAL800_OS; + break; case (800 | (600 << 16)): - if ((target.flags & TV_BITS) == TV_PAL) - { - if (!(target.flags & TV_VIDEO)) status = PAL800; - else status = PAL800_OS; - } - if ((target.flags & TV_BITS) == TV_NTSC) - { - if (!(target.flags & TV_VIDEO)) status = NTSC800; - } + if (((target.flags & TV_BITS) == TV_PAL) && (!(target.flags & TV_VIDEO))) + status = PAL800; + if (((target.flags & TV_BITS) == TV_NTSC) && (!(target.flags & TV_VIDEO))) + status = NTSC800; break; case (720 | (480 << 16)): if (((target.flags & TV_BITS) == TV_NTSC) && (target.flags & TV_VIDEO))