~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythui/DisplayResX.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Mario Limonciello, John Baab
  • Date: 2009-09-29 01:33:23 UTC
  • mfrom: (1.1.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20090929013323-6pvn8encm757zbxw
Tags: 0.22.0~trunk22101-0ubuntu1
[ Mario Limonciello ]
* New upstream checkout (r22101)
* Try to guard and make sure that ~mythtv is read from /etc/passwd 
  rather than assuming it's /home/mythtv.

[ John Baab ]
* debian/mythtv-common.postinst:
  - Added symlink for /home/mythtv/.mythtv/config.xml

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <iostream>
2
1
 
3
2
#include "config.h"
4
3
#include "DisplayResX.h"
 
4
 
 
5
#include <cmath>
 
6
 
5
7
#include "mythverbose.h"
6
8
#include "mythdb.h"
7
 
 
8
9
#include "mythxdisplay.h"
9
 
 
10
 
#include <cmath>
11
10
#include "util-nvctrl.h"
12
11
 
13
12
#include <X11/extensions/Xrandr.h> // this has to be after util-x11.h (Qt bug)
142
141
            std::map<double, short> realRates;
143
142
            const std::vector<double>& rates = scr.RefreshRates();
144
143
            bool found = false;
145
 
            for (std::vector<double>::const_iterator it = rates.begin() ; it !=  rates.end();  it++)
 
144
            for (std::vector<double>::const_iterator it = rates.begin();
 
145
                 it !=  rates.end(); ++it)
146
146
            {
147
147
                uint key = DisplayResScreen::CalcKey(w, h, *it);
148
148
                if (screenmap.find(key) != screenmap.end())