author | zecke <zecke> | 2002-07-11 22:44:54 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-11 22:44:54 (UTC) |
commit | d2c7228d2efe6f47ef5b7ec04157fcead775be74 (patch) (unidiff) | |
tree | 95584eff5b953cc4ac908da028ef3c66c75b28cd /noncore/multimedia/opieplayer2/videowidget.cpp | |
parent | 1651f048bb129b8e748a01c514d84c8626e0f1e2 (diff) | |
download | opie-d2c7228d2efe6f47ef5b7ec04157fcead775be74.zip opie-d2c7228d2efe6f47ef5b7ec04157fcead775be74.tar.gz opie-d2c7228d2efe6f47ef5b7ec04157fcead775be74.tar.bz2 |
broken video widget
Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 8fdb3d3..d3898a0 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -288,16 +288,16 @@ void VideoWidget::paintEvent( QPaintEvent * ) { | |||
288 | 288 | ||
289 | if ( mediaPlayerState->fullscreen() ) { | 289 | if ( mediaPlayerState->fullscreen() ) { |
290 | // Clear the background | 290 | // Clear the background |
291 | p.setBrush( QBrush( Qt::black ) ); | 291 | // p.setBrush( QBrush( Qt::black ) ); |
292 | p.drawRect( rect() ); | 292 | //p.drawRect( rect() ); |
293 | 293 | ||
294 | } else { | 294 | } else { |
295 | // draw border | 295 | // draw border |
296 | qDrawShadePanel( &p, 4, 15, 230, 170, colorGroup(), TRUE, 5, NULL ); | 296 | qDrawShadePanel( &p, 4, 15, 230, 170, colorGroup(), TRUE, 5, NULL ); |
297 | 297 | ||
298 | // Clear the movie screen first | 298 | // Clear the movie screen first |
299 | p.setBrush( QBrush( Qt::black ) ); | 299 | // p.setBrush( QBrush( Qt::black ) ); |
300 | p.drawRect( 9, 20, 220, 160 ); | 300 | // p.drawRect( 9, 20, 220, 160 ); |
301 | 301 | ||
302 | // draw current frame (centrally positioned from scaling to maintain aspect ratio) | 302 | // draw current frame (centrally positioned from scaling to maintain aspect ratio) |
303 | //p.drawImage( 9 + (220 - scaledWidth) / 2, 20 + (160 - scaledHeight) / 2, *currentFrame, 0, 0, scaledWidth, scaledHeight ); | 303 | //p.drawImage( 9 + (220 - scaledWidth) / 2, 20 + (160 - scaledHeight) / 2, *currentFrame, 0, 0, scaledWidth, scaledHeight ); |
@@ -309,6 +309,7 @@ void VideoWidget::paintEvent( QPaintEvent * ) { | |||
309 | 309 | ||
310 | // draw the slider | 310 | // draw the slider |
311 | slider->repaint( TRUE ); | 311 | slider->repaint( TRUE ); |
312 | //videoFrame->repaint( TRUE ); | ||
312 | } | 313 | } |
313 | } | 314 | } |
314 | 315 | ||
@@ -382,3 +383,6 @@ void VideoWidget::keyReleaseEvent( QKeyEvent *e) | |||
382 | 383 | ||
383 | }; | 384 | }; |
384 | } | 385 | } |
386 | XineVideoWidget* VideoWidget::vidWidget() { | ||
387 | return videoFrame; | ||
388 | } | ||