diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-02-03 11:57:37 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-02-05 19:20:39 +0000 |
commit | 95573dfc508b9d5fef694ee0bbaaef939663740c (patch) | |
tree | 7c0e84bebc9ba851e1f7a0217742467713005028 /mkspecs | |
parent | 48497355395eb542df95f43471f96ce09c9e4b94 (diff) |
Remove unused function from rpi hooks
This is a leftover from the old experimental mouse cursor support
which got removed. Avoid compiler warnings by removing this function too.
Change-Id: Id269ff987883708d1061a315fef70b8fc6f13706
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp b/mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp index 8994d610b1..d7a548fa4d 100644 --- a/mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp +++ b/mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp @@ -79,39 +79,6 @@ static EGLNativeWindowType createDispmanxLayer(const QPoint &pos, const QSize &s return eglWindow; } -// these constants are not in any headers (yet) -#define ELEMENT_CHANGE_LAYER (1<<0) -#define ELEMENT_CHANGE_OPACITY (1<<1) -#define ELEMENT_CHANGE_DEST_RECT (1<<2) -#define ELEMENT_CHANGE_SRC_RECT (1<<3) -#define ELEMENT_CHANGE_MASK_RESOURCE (1<<4) -#define ELEMENT_CHANGE_TRANSFORM (1<<5) - -static void moveDispmanxLayer(EGLNativeWindowType window, const QPoint &pos) -{ - EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window); - QSize size(eglWindow->width, eglWindow->height); - - VC_RECT_T dst_rect; - dst_rect.x = pos.x(); - dst_rect.y = pos.y(); - dst_rect.width = size.width(); - dst_rect.height = size.height(); - - DISPMANX_UPDATE_HANDLE_T dispman_update = vc_dispmanx_update_start(0); - vc_dispmanx_element_change_attributes(dispman_update, - eglWindow->element, - ELEMENT_CHANGE_DEST_RECT /*change_flags*/, - 0, - 0, - &dst_rect, - NULL, - 0, - (DISPMANX_TRANSFORM_T)0); - - vc_dispmanx_update_submit_sync(dispman_update); -} - static void destroyDispmanxLayer(EGLNativeWindowType window) { EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window); |