author | harlekin <harlekin> | 2002-08-16 15:16:13 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-16 15:16:13 (UTC) |
commit | aa9eba407a8236c72822d24643b58d4d48ae80c0 (patch) (side-by-side diff) | |
tree | 178c91d1a1d33a3ae6ae7bf91746fc1a4fd499e2 /noncore/multimedia/opieplayer2/mediaplayer.cpp | |
parent | c150d03ae4d626c57531f89413710033d1ef5151 (diff) | |
download | opie-aa9eba407a8236c72822d24643b58d4d48ae80c0.zip opie-aa9eba407a8236c72822d24643b58d4d48ae80c0.tar.gz opie-aa9eba407a8236c72822d24643b58d4d48ae80c0.tar.bz2 |
blank now works, mail key on ipaq
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayer.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp index 858b51f..87f4f0c 100644 --- a/noncore/multimedia/opieplayer2/mediaplayer.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp @@ -29,6 +29,8 @@ extern PlayListWidget *playList; extern MediaPlayerState *mediaPlayerState; +#define FBIOBLANK 0x4611 + MediaPlayer::MediaPlayer( QObject *parent, const char *name ) : QObject( parent, name ), volumeDirection( 0 ), currentFile( NULL ) { @@ -252,8 +254,7 @@ void MediaPlayer::timerEvent( QTimerEvent * ) { void MediaPlayer::blank( bool b ) { fd=open("/dev/fb0",O_RDWR); if (fd != -1) { - - if ( !b ) { + if ( b ) { qDebug("do blanking"); ioctl( fd, FBIOBLANK, 3 ); isBlanked = TRUE; @@ -263,6 +264,8 @@ void MediaPlayer::blank( bool b ) { isBlanked = FALSE; } close( fd ); + } else { + qDebug("<< /dev/fb0 could not be opend >>"); } } |