diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-09 09:26:34 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-30 01:34:06 -0700 |
commit | a187677a93a215ccbba819f98425a6c682a50a6c (patch) | |
tree | e65d19562466aae711d7c2ec0cf302fcc816e0cf | |
parent | 30e9137bf94f58f66cc6883b0a47eab3159c8be6 (diff) |
find_mode: Search for the mode closes to the specified rate
This was the intention of d9aeb4a7544ad4a33f6f54bc46bff5cdf231a986, but
find_mode was still picking the first string match rather than the
match with the closest refresh rate.
xrandr.c:740:3: warning: Value stored to 'bestDist' is never read
bestDist = dist;
^ ~~~~
Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | xrandr.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -740,7 +740,6 @@ find_mode (name_t *name, double refresh) bestDist = dist; best = mode; } - break; } } return best; |