From 9d0ccc1c5ca687bc017b2b515a9d3a47e98ce521 Mon Sep 17 00:00:00 2001 From: schurig Date: Fri, 10 Sep 2004 12:18:17 +0000 Subject: added support for DEVFS --- (limited to 'libopie/odevice.cpp') diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 21070bf..9d0bbbf 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -595,7 +595,11 @@ bool ODevice::setDisplayStatus ( bool on ) bool res = false; int fd; +#ifdef QT_QWS_DEVFS + if (( fd = ::open ( "/dev/fb/0", O_RDWR )) >= 0 ) { +#else if (( fd = ::open ( "/dev/fb0", O_RDWR )) >= 0 ) { +#endif res = ( ::ioctl ( fd, FBIOBLANK, on ? VESA_NO_BLANKING : VESA_POWERDOWN ) == 0 ); ::close ( fd ); } -- cgit v0.9.0.2