2 #include <QApplication>
12 #define LOC QString("D3D9 Painter: ")
31 QWidget *real_parent = (QWidget*)parent;
39 if (
m_render->
Create(real_parent->size(), (HWND)real_parent->winId()))
75 LOG(VB_GENERAL, LOG_ERR,
"Failed to create D3D9 render.");
89 LOG(VB_GENERAL, LOG_ERR,
"Failed to enable offscreen buffer.");
117 LOG(VB_GENERAL, LOG_INFO,
LOC +
"Clearing D3D9 painter cache.");
143 const QRect src,
int alpha)
154 const QPen &linePen,
int alpha)
156 int style = fillBrush.style();
157 if (style == Qt::SolidPattern || style == Qt::NoBrush)
162 if (style != Qt::NoBrush)
165 if (linePen.style() != Qt::NoPen)
167 int lineWidth = linePen.width();
168 QRect top(QPoint(area.x(), area.y()),
169 QSize(area.width(), lineWidth));
170 QRect bot(QPoint(area.x(), area.y() + area.height() - lineWidth),
171 QSize(area.width(), lineWidth));
172 QRect left(QPoint(area.x(), area.y()),
173 QSize(lineWidth, area.height()));
174 QRect right(QPoint(area.x() + area.width() - lineWidth, area.y()),
175 QSize(lineWidth, area.height()));
219 if (newimage && newimage->
IsValid())
237 LOG(VB_GENERAL, LOG_ERR,
LOC +
"Failed to create D3D9 UI bitmap.");