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

« back to all changes in this revision

Viewing changes to libs/libmythui/mythpainter_vdpau.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 <cassert>
2
 
 
 
1
 
 
2
// Config header
 
3
#include "config.h"
 
4
 
 
5
// Own header
 
6
#include "mythpainter_vdpau.h"
 
7
 
 
8
// QT headers
3
9
#include <QApplication>
4
10
#include <QPixmap>
5
11
#include <QPainter>
6
12
#include <QX11Info>
7
13
 
8
 
#include "config.h"
9
 
 
 
14
// Mythdb headers
10
15
#include "mythverbose.h"
11
 
#include "mythpainter_vdpau.h"
 
16
 
 
17
// Mythui headers
12
18
#include "mythfontproperties.h"
13
19
 
 
20
// VDPAU headers
14
21
extern "C" {
15
22
#include "vdpau/vdpau.h"
16
23
#include "vdpau/vdpau_x11.h"
17
24
}
18
25
 
 
26
 
19
27
#define MAX_GL_ITEMS 256
20
28
#define MAX_STRING_ITEMS 256
21
29
 
339
347
    VdpTime dummy = 0;
340
348
    bool ok = true;
341
349
 
342
 
    assert(parent);
 
350
    if (!parent)
 
351
    {
 
352
        VERBOSE(VB_IMPORTANT, "FATAL ERROR: No parent widget defined for "
 
353
                              "VDPAU Painter, bailing");
 
354
        return;
 
355
    }
343
356
 
344
357
    if (initialized &&
345
358
        (parent->width() != (int)outRect.x1 || parent->height() != (int)outRect.y1))