summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-17 02:45:43 (UTC)
committer llornkcor <llornkcor>2002-10-17 02:45:43 (UTC)
commitce65a2b92c8d647b0621120358bde62f7a893129 (patch) (side-by-side diff)
tree819bc79171edb15aff5e0da7224110f0b5928906
parent4f2dc0f59515dd456dbe7b32eeda835ea231fca9 (diff)
downloadopie-ce65a2b92c8d647b0621120358bde62f7a893129.zip
opie-ce65a2b92c8d647b0621120358bde62f7a893129.tar.gz
opie-ce65a2b92c8d647b0621120358bde62f7a893129.tar.bz2
zaurus screenblanking - maybe better, maybe not- needs testing
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayer.cpp18
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 )
+ fd=-1;fl=-1;
playList->setCaption( tr( "OpiePlayer: Initializating" ) );
@@ -300,2 +301,5 @@ void MediaPlayer::blank( bool b ) {
fd=open("/dev/fb0",O_RDWR);
+#ifdef QT_QWS_EBX
+ fl= open( "/dev/fl", O_RDWR );
+#endif
if (fd != -1) {
@@ -303,3 +307,11 @@ void MediaPlayer::blank( bool b ) {
qDebug("do blanking");
+#ifdef QT_QWS_EBX
+ ioctl( fd, FBIOBLANK, 1 );
+ if(fl !=-1) {
+ ioctl( fl, 2 );
+ ::close(fl);
+ }
+#else
ioctl( fd, FBIOBLANK, 3 );
+#endif
isBlanked = TRUE;
@@ -308,2 +320,8 @@ void MediaPlayer::blank( bool b ) {
ioctl( fd, FBIOBLANK, 0);
+#ifdef QT_QWS_EBX
+ if(fl != -1) {
+ ioctl( fl, 1);
+ ::close(fl);
+ }
+#endif
isBlanked = FALSE;