author | llornkcor <llornkcor> | 2002-10-17 02:45:43 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-10-17 02:45:43 (UTC) |
commit | ce65a2b92c8d647b0621120358bde62f7a893129 (patch) (unidiff) | |
tree | 819bc79171edb15aff5e0da7224110f0b5928906 | |
parent | 4f2dc0f59515dd456dbe7b32eeda835ea231fca9 (diff) | |
download | opie-ce65a2b92c8d647b0621120358bde62f7a893129.zip opie-ce65a2b92c8d647b0621120358bde62f7a893129.tar.gz opie-ce65a2b92c8d647b0621120358bde62f7a893129.tar.bz2 |
zaurus screenblanking - maybe better, maybe not- needs testing
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayer.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp index 606f8e9..f0a01a1 100644 --- a/noncore/multimedia/opieplayer2/mediaplayer.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp | |||
@@ -37,2 +37,3 @@ MediaPlayer::MediaPlayer( QObject *parent, const char *name ) | |||
37 | 37 | ||
38 | fd=-1;fl=-1; | ||
38 | playList->setCaption( tr( "OpiePlayer: Initializating" ) ); | 39 | playList->setCaption( tr( "OpiePlayer: Initializating" ) ); |
@@ -300,2 +301,5 @@ void MediaPlayer::blank( bool b ) { | |||
300 | fd=open("/dev/fb0",O_RDWR); | 301 | fd=open("/dev/fb0",O_RDWR); |
302 | #ifdef QT_QWS_EBX | ||
303 | fl= open( "/dev/fl", O_RDWR ); | ||
304 | #endif | ||
301 | if (fd != -1) { | 305 | if (fd != -1) { |
@@ -303,3 +307,11 @@ void MediaPlayer::blank( bool b ) { | |||
303 | qDebug("do blanking"); | 307 | qDebug("do blanking"); |
308 | #ifdef QT_QWS_EBX | ||
309 | ioctl( fd, FBIOBLANK, 1 ); | ||
310 | if(fl !=-1) { | ||
311 | ioctl( fl, 2 ); | ||
312 | ::close(fl); | ||
313 | } | ||
314 | #else | ||
304 | ioctl( fd, FBIOBLANK, 3 ); | 315 | ioctl( fd, FBIOBLANK, 3 ); |
316 | #endif | ||
305 | isBlanked = TRUE; | 317 | isBlanked = TRUE; |
@@ -308,2 +320,8 @@ void MediaPlayer::blank( bool b ) { | |||
308 | ioctl( fd, FBIOBLANK, 0); | 320 | ioctl( fd, FBIOBLANK, 0); |
321 | #ifdef QT_QWS_EBX | ||
322 | if(fl != -1) { | ||
323 | ioctl( fl, 1); | ||
324 | ::close(fl); | ||
325 | } | ||
326 | #endif | ||
309 | isBlanked = FALSE; | 327 | isBlanked = FALSE; |