-rw-r--r-- | noncore/multimedia/opieplayer2/xinevideowidget.cpp | 18 |
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 @@ - /* @@ -217,2 +216,5 @@ void XineVideoWidget::paintEvent2 ( QPaintEvent * ) m_thisframe.setRect(width()/2-middle_w,height()/2-middle_h,_vw,_vh); + + { + // is this stuff realy needed? it seems working without, too. QRect topFill,rightFill,leftFill,downFill; @@ -235,2 +237,4 @@ void XineVideoWidget::paintEvent2 ( QPaintEvent * ) } + + } uchar *fb = dp. frameBuffer ( ); @@ -269,9 +273,2 @@ void XineVideoWidget::paintEvent2 ( QPaintEvent * ) } - - - { - // QVFB hack by Martin Jones - // We need to "touch" all affected clip rects with a normal QPainter in addition to the QDirectPainter - p.fillRect(QRect(mapFromGlobal (m_thisframe. topLeft ( )), m_thisframe.size ()),QBrush(NoBrush)); - } } @@ -313,5 +310,2 @@ void XineVideoWidget::setVideoFrame ( uchar* img, int w, int h, int bpl ) } - } else if (l==0){ - delete[] m_buff; - m_buff = 0; } @@ -325,3 +319,3 @@ void XineVideoWidget::setVideoFrame ( uchar* img, int w, int h, int bpl ) - paintEvent2(0); + if (m_buff) paintEvent2(0); } |