[haiku-commits] r42451 - haiku/trunk/src/preferences/screen

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 19 Jul 2011 19:08:46 +0200 (CEST)

Author: axeld
Date: 2011-07-19 19:08:45 +0200 (Tue, 19 Jul 2011)
New Revision: 42451
Changeset: https://dev.haiku-os.org/changeset/42451

Removed:
   haiku/trunk/src/preferences/screen/gtf.cpp
   haiku/trunk/src/preferences/screen/gtf.h
Modified:
   haiku/trunk/src/preferences/screen/Jamfile
   haiku/trunk/src/preferences/screen/ScreenMode.cpp
Log:
* Removed the previous version of the GTF function, since a few rounding errors
  have been introduced, and also support for interlace mode had been removed.
* Instead, the Screen preferences are now using the common accelerant code for
  this.


Modified: haiku/trunk/src/preferences/screen/Jamfile
===================================================================
--- haiku/trunk/src/preferences/screen/Jamfile  2011-07-19 16:59:50 UTC (rev 
42450)
+++ haiku/trunk/src/preferences/screen/Jamfile  2011-07-19 17:08:45 UTC (rev 
42451)
@@ -3,13 +3,13 @@
 SetSubDirSupportedPlatformsBeOSCompatible ;
 AddSubDirSupportedPlatforms libbe_test ;
 
+UsePrivateHeaders [ FDirName graphics common ] ;
 UsePrivateHeaders [ FDirName graphics radeon ] ;
 UsePrivateHeaders interface ;
 
 Preference Screen :
        AlertView.cpp
        AlertWindow.cpp
-       gtf.cpp
        MonitorView.cpp
        multimon.cpp
        RefreshSlider.cpp
@@ -19,7 +19,7 @@
        ScreenSettings.cpp
        ScreenWindow.cpp
        Utility.cpp
-       : be $(TARGET_LIBSUPC++) $(HAIKU_LOCALE_LIBS)
+       : be $(TARGET_LIBSUPC++) $(HAIKU_LOCALE_LIBS) libaccelerantscommon.a
        : Screen.rdef
        ;
 

Modified: haiku/trunk/src/preferences/screen/ScreenMode.cpp
===================================================================
--- haiku/trunk/src/preferences/screen/ScreenMode.cpp   2011-07-19 16:59:50 UTC 
(rev 42450)
+++ haiku/trunk/src/preferences/screen/ScreenMode.cpp   2011-07-19 17:08:45 UTC 
(rev 42451)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2005-2009, Haiku.
+ * Copyright 2005-2011, Haiku.
  * Distributed under the terms of the MIT License.
  *
  * Authors:
@@ -8,16 +8,17 @@
 
 
 #include "ScreenMode.h"
-#include "gtf.h"
 
-#include <InterfaceDefs.h>
-#include <String.h>
-
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 
+#include <InterfaceDefs.h>
+#include <String.h>
 
+#include <compute_display_timing.h>
+
+
 /* Note, this headers defines a *private* interface to the Radeon accelerant.
  * It's a solution that works with the current BeOS interface that Haiku
  * adopted.
@@ -626,10 +627,9 @@
        // For the mode selected by the width, height, and refresh rate, compute
        // the video timing parameters for the mode by using the VESA 
Generalized
        // Timing Formula (GTF).
+       compute_display_timing(mode.width, mode.height, mode.refresh, false,
+               &displayMode.timing);
 
-       ComputeGTFVideoTiming(displayMode.timing.h_display,
-               displayMode.timing.v_display, mode.refresh, displayMode.timing);
-
        return true;
 }
 


Other related posts:

  • » [haiku-commits] r42451 - haiku/trunk/src/preferences/screen - axeld