|
|
| version 1.2, 2003/12/19 16:08:02 | version 1.3, 2004/03/02 16:34:50 |
|---|---|
| Line 30 | Line 30 |
| #include "np2.h" | #include "np2.h" |
| #include "qt/xnp2.h" | #include "qt/xnp2.h" |
| #if defined(Q_WS_X11) | |
| #include <X11/Xlib.h> | #include <X11/Xlib.h> |
| #include <qcursor.h> | #include <qcursor.h> |
| const ScreenInfo | const ScreenInfo |
| qt_getScreenInfo() | qt_getScreenInfo() |
| { | { |
| Line 103 hasPendingEvents() | Line 103 hasPendingEvents() |
| return XPending(QPaintDevice::x11AppDisplay()); | return XPending(QPaintDevice::x11AppDisplay()); |
| } | } |
| #endif /* Q_WS_X11 */ | |
| #if defined(Q_WS_QWS) | |
| #include <qpixmap.h> | |
| const ScreenInfo | |
| qt_getScreenInfo() | |
| { | |
| ScreenInfo info; | |
| info.bpp = 0; | |
| // 16bpp only... | |
| if (QPixmap::defaultDepth() == 16) { | |
| info.bpp = 16; | |
| info.mask.red = 0xf800; | |
| info.mask.green = 0x07e0; | |
| info.mask.blue = 0x001f; | |
| } | |
| return info; | |
| } | |
| bool | |
| hasPendingEvents() | |
| { | |
| return false; | |
| } | |
| #endif | |
| void | void |
| qt_setPointer(QWidget *w, int x, int y) | qt_setPointer(QWidget *w, int x, int y) |