From 8df28401db620a01144ca45988837583f55e15c3 Mon Sep 17 00:00:00 2001 From: schurig Date: Thu, 09 Sep 2004 09:08:36 +0000 Subject: support for devfs --- (limited to 'libopie2/opiecore/device/odevice.cpp') diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index 280b0c5..2355621 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp @@ -319,7 +319,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