directfb: Move the macro to the qdirectfbconvenience header file

We will need to have logging outside of the blitter code, make the
macro available to everyone.

Change-Id: I811ecb98a870a818630276b5daa788790db71ccd
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
This commit is contained in:
Holger Hans Peter Freyther 2011-11-27 11:51:45 +01:00 committed by Qt by Nokia
parent f0942bd8cb
commit 3d07ef1d0c
2 changed files with 6 additions and 5 deletions

View File

@ -50,11 +50,6 @@
#include <directfb.h> #include <directfb.h>
#define QDFB_STRINGIFY(x) #x
#define QDFB_TOSTRING(x) QDFB_STRINGIFY(x)
#define QDFB_PRETTY \
(__FILE__ ":" QDFB_TOSTRING(__LINE__))
static QBlittable::Capabilities dfb_blitter_capabilities() static QBlittable::Capabilities dfb_blitter_capabilities()
{ {
return QBlittable::Capabilities(QBlittable::SolidRectCapability return QBlittable::Capabilities(QBlittable::SolidRectCapability

View File

@ -114,4 +114,10 @@ public:
QDirectFbScreen *toDfbScreen(QWindow *window); QDirectFbScreen *toDfbScreen(QWindow *window);
IDirectFBDisplayLayer *toDfbLayer(QPlatformScreen *screen); IDirectFBDisplayLayer *toDfbLayer(QPlatformScreen *screen);
#define QDFB_STRINGIFY(x) #x
#define QDFB_TOSTRING(x) QDFB_STRINGIFY(x)
#define QDFB_PRETTY \
(__FILE__ ":" QDFB_TOSTRING(__LINE__))
#endif // QDIRECTFBCONVENIENCE_H #endif // QDIRECTFBCONVENIENCE_H