summaryrefslogtreecommitdiff
authorzecke <zecke>2003-10-07 13:01:51 (UTC)
committer zecke <zecke>2003-10-07 13:01:51 (UTC)
commitd72a9cfe61cbc0910373e4604220021ebbcedaeb (patch) (unidiff)
tree285eb69e028889fe8d9af57d5db5cd4304509a32
parent62d81aa76146401087e3ec9dcebd298a7d030c4a (diff)
downloadopie-d72a9cfe61cbc0910373e4604220021ebbcedaeb.zip
opie-d72a9cfe61cbc0910373e4604220021ebbcedaeb.tar.gz
opie-d72a9cfe61cbc0910373e4604220021ebbcedaeb.tar.bz2
Add a FIXME to the MediaPlayer::blank method
why don't we use ODevice::inst()->setDisplayStatus() ?
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp
index 9f51006..4c9afca 100644
--- a/noncore/multimedia/opieplayer2/mediaplayer.cpp
+++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp
@@ -270,32 +270,33 @@ void MediaPlayer::timerEvent( QTimerEvent * ) {
270 f.setBold( TRUE ); 270 f.setBold( TRUE );
271 p.setFont( f ); 271 p.setFont( f );
272 p.drawText( (w - 200) / 2, h - yoff + 20, tr( "Volume" ) ); 272 p.drawText( (w - 200) / 2, h - yoff + 20, tr( "Volume" ) );
273 273
274 for ( unsigned int i = 0; i < 10; i++ ) { 274 for ( unsigned int i = 0; i < 10; i++ ) {
275 if ( v > i ) { 275 if ( v > i ) {
276 p.drawRect( (w - 200) / 2 + i * 20 + 0, h - yoff + 40, 9, 30 ); 276 p.drawRect( (w - 200) / 2 + i * 20 + 0, h - yoff + 40, 9, 30 );
277 } else { 277 } else {
278 p.drawRect( (w - 200) / 2 + i * 20 + 3, h - yoff + 50, 3, 10 ); 278 p.drawRect( (w - 200) / 2 + i * 20 + 3, h - yoff + 50, 3, 10 );
279 } 279 }
280 } 280 }
281 } 281 }
282} 282}
283 283
284 284
285void MediaPlayer::blank( bool b ) { 285void MediaPlayer::blank( bool b ) {
286// ### FIXME use ODevice::inst()->setDisplayStatus( b );
286 fd=open("/dev/fb0",O_RDWR); 287 fd=open("/dev/fb0",O_RDWR);
287#ifdef QT_QWS_SL5XXX 288#ifdef QT_QWS_SL5XXX
288 fl= open( "/dev/fl", O_RDWR ); 289 fl= open( "/dev/fl", O_RDWR );
289#endif 290#endif
290 if (fd != -1) { 291 if (fd != -1) {
291 if ( b ) { 292 if ( b ) {
292 qDebug("do blanking"); 293 qDebug("do blanking");
293#ifdef QT_QWS_SL5XXX 294#ifdef QT_QWS_SL5XXX
294 ioctl( fd, FBIOBLANK, 1 ); 295 ioctl( fd, FBIOBLANK, 1 );
295 if(fl !=-1) { 296 if(fl !=-1) {
296 ioctl( fl, 2 ); 297 ioctl( fl, 2 );
297 ::close(fl); 298 ::close(fl);
298 } 299 }
299#else 300#else
300 ioctl( fd, FBIOBLANK, 3 ); 301 ioctl( fd, FBIOBLANK, 3 );
301#endif 302#endif