summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinevideowidget.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/noncore/multimedia/opieplayer2/xinevideowidget.cpp b/noncore/multimedia/opieplayer2/xinevideowidget.cpp
index 7f59085..78ebe19 100644
--- a/noncore/multimedia/opieplayer2/xinevideowidget.cpp
+++ b/noncore/multimedia/opieplayer2/xinevideowidget.cpp
@@ -1,2 +1 @@
1
2/* /*
@@ -217,2 +216,5 @@ void XineVideoWidget::paintEvent2 ( QPaintEvent * )
217 m_thisframe.setRect(width()/2-middle_w,height()/2-middle_h,_vw,_vh); 216 m_thisframe.setRect(width()/2-middle_w,height()/2-middle_h,_vw,_vh);
217
218 {
219 // is this stuff realy needed? it seems working without, too.
218 QRect topFill,rightFill,leftFill,downFill; 220 QRect topFill,rightFill,leftFill,downFill;
@@ -235,2 +237,4 @@ void XineVideoWidget::paintEvent2 ( QPaintEvent * )
235 } 237 }
238
239 }
236 uchar *fb = dp. frameBuffer ( ); 240 uchar *fb = dp. frameBuffer ( );
@@ -269,9 +273,2 @@ void XineVideoWidget::paintEvent2 ( QPaintEvent * )
269 } 273 }
270
271
272 {
273 // QVFB hack by Martin Jones
274 // We need to "touch" all affected clip rects with a normal QPainter in addition to the QDirectPainter
275 p.fillRect(QRect(mapFromGlobal (m_thisframe. topLeft ( )), m_thisframe.size ()),QBrush(NoBrush));
276 }
277 } 274 }
@@ -313,5 +310,2 @@ void XineVideoWidget::setVideoFrame ( uchar* img, int w, int h, int bpl )
313 } 310 }
314 } else if (l==0){
315 delete[] m_buff;
316 m_buff = 0;
317 } 311 }
@@ -325,3 +319,3 @@ void XineVideoWidget::setVideoFrame ( uchar* img, int w, int h, int bpl )
325 319
326 paintEvent2(0); 320 if (m_buff) paintEvent2(0);
327} 321}