diff options
author | Keith Packard <keithp@keithp.com> | 2000-09-26 04:31:23 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2000-09-26 04:31:23 +0000 |
commit | 94368c3b92b8513d5135fb3c20165f108b0e96fd (patch) | |
tree | e0332d7abceb17a9ed7a5f3ef808799e270cbc57 /hw/kdrive/fbdev/fbdev.c | |
parent | 03e3689701007ea40422b4d729b65aaebcd84869 (diff) |
kdrive: Add iPAQ and Touch screen support
Diffstat (limited to 'hw/kdrive/fbdev/fbdev.c')
-rw-r--r-- | hw/kdrive/fbdev/fbdev.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c index a63e69736..7748b798f 100644 --- a/hw/kdrive/fbdev/fbdev.c +++ b/hw/kdrive/fbdev/fbdev.c @@ -21,7 +21,7 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ -/* $XFree86: xc/programs/Xserver/hw/kdrive/fbdev/fbdev.c,v 1.6 2000/09/15 07:25:12 keithp Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/kdrive/fbdev/fbdev.c,v 1.7 2000/09/22 06:25:08 keithp Exp $ */ #include "fbdev.h" @@ -382,7 +382,11 @@ fbdevDPMS (ScreenPtr pScreen, int mode) FbdevPriv *priv = pScreenPriv->card->driver; #ifdef FBIOPUT_POWERMODE - if (!ioctl (priv->fd, FBIOPUT_POWERMODE, &mode)) + if (ioctl (priv->fd, FBIOPUT_POWERMODE, &mode) >= 0) + return TRUE; +#endif +#ifdef FBIOBLANK + if (ioctl (priv->fd, FBIOBLANK, mode ? mode + 1 : 0) >= 0) return TRUE; #endif return FALSE; |