diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-07 21:37:53 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-07 21:37:53 -0400 |
commit | 7d6e126284eeff61994ed253768a8d4e4782affc (patch) | |
tree | e45a198405d3c5b1e75890be4661e3e0d7dcf2df /pts-core/functions/pts-functions_system_graphics.php | |
parent | 070ac56fdbf320998f401b4f9b93531b5b463124 (diff) | |
download | phoronix-test-suite-upstream-7d6e126284eeff61994ed253768a8d4e4782affc.tar.gz phoronix-test-suite-upstream-7d6e126284eeff61994ed253768a8d4e4782affc.tar.xz phoronix-test-suite-upstream-7d6e126284eeff61994ed253768a8d4e4782affc.zip |
pts-core: Fix for xrandr_available_modes() parsing on X.Org 7.1
Diffstat (limited to 'pts-core/functions/pts-functions_system_graphics.php')
-rw-r--r-- | pts-core/functions/pts-functions_system_graphics.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php index e48962c..58a8055 100644 --- a/pts-core/functions/pts-functions_system_graphics.php +++ b/pts-core/functions/pts-functions_system_graphics.php @@ -189,6 +189,9 @@ function xrandr_available_modes() foreach($xrandr_lines as $xrandr_mode) { + if(($cut_point = strpos($xrandr_mode, "(")) > 0) + $xrandr_mode = substr($xrandr_mode, 0, $cut_point); + $res = explode("x", $xrandr_mode); if(count($res) == 2) |