From 47e305953079bdd3fb7079ee1bbce4edd2b6cb7b Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Sun, 16 Dec 2007 00:31:34 +0000 Subject: [PATCH] Commented out aspect ratio autodetection. It tends to guess wrong if e.g. 800x600 is displayed on a 16:10 screen SVN-Revision: 5193 --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 8144ecde9..cca8615e3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -401,11 +401,18 @@ void init_video() // try to guess aspect ratio of monitor if needed if (aspect_ratio <= 0) { +// TODO: commented out because +// 1) it tends to guess wrong if widescreen-monitors don't stretch 800x600 to fit, but just display black borders +// 2) aspect ratios other than 4:3 are largely untested +/* if(config->use_fullscreen && desktop_width > 0) { aspect_ratio = static_cast(desktop_width) / static_cast(desktop_height); } else { +*/ aspect_ratio = 4.0 / 3.0; +/* } +*/ } // use aspect ratio to calculate logical resolution -- 2.11.0