Pandora: Fixed compile warnings in video implementation (thanks, Bombo!).
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 20 Jul 2016 21:00:36 +0200
changeset 10207 e66f6ab2b059
parent 10206 30ca8e64db6a
child 10208 49c460371a4a
Pandora: Fixed compile warnings in video implementation (thanks, Bombo!). Fixes Bugzilla #2734.
src/video/pandora/SDL_pandora.c
src/video/pandora/SDL_pandora.h
--- a/src/video/pandora/SDL_pandora.c	Tue Jul 19 21:02:44 2016 +0200
+++ b/src/video/pandora/SDL_pandora.c	Wed Jul 20 21:00:36 2016 +0200
@@ -41,8 +41,6 @@
 static NativeWindowType hNativeWnd = 0; /* A handle to the window we will create. */
 #endif
 
-static SDL_bool PND_initialized = SDL_FALSE;
-
 static int
 PND_available(void)
 {
@@ -52,8 +50,6 @@
 static void
 PND_destroy(SDL_VideoDevice * device)
 {
-    SDL_VideoData *phdata = (SDL_VideoData *) device->driverdata;
-
     if (device->driverdata != NULL) {
         device->driverdata = NULL;
     }
@@ -203,10 +199,6 @@
 
     SDL_WindowData *wdata;
 
-    uint32_t winargc = 0;
-    int32_t status;
-
-
     /* Allocate window internal data */
     wdata = (SDL_WindowData *) SDL_calloc(1, sizeof(SDL_WindowData));
     if (wdata == NULL) {
@@ -291,7 +283,7 @@
 {
 }
 void
-PND_setwindowgrab(_THIS, SDL_Window * window)
+PND_setwindowgrab(_THIS, SDL_Window * window, SDL_bool grabbed)
 {
 }
 void
@@ -325,8 +317,6 @@
 int
 PND_gl_loadlibrary(_THIS, const char *path)
 {
-    SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
-
     /* Check if OpenGL ES library is specified for GF driver */
     if (path == NULL) {
         path = SDL_getenv("SDL_OPENGL_LIBRARY");
@@ -364,7 +354,6 @@
 void *
 PND_gl_getprocaddres(_THIS, const char *proc)
 {
-    SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
     void *function_address;
 
     /* Try to get function address through the egl interface */
@@ -408,10 +397,7 @@
 {
     SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
     SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
-    SDL_DisplayData *didata =
-        (SDL_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata;
     EGLBoolean status;
-    int32_t gfstatus;
     EGLint configs;
     uint32_t attr_pos;
     EGLint attr_value;
@@ -791,9 +777,6 @@
 {
     SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
     SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
-    SDL_DisplayData *didata =
-        (SDL_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata;
-
 
     if (phdata->egl_initialized != SDL_TRUE) {
         SDL_SetError("PND: GLES initialization failed, no OpenGL ES support");
--- a/src/video/pandora/SDL_pandora.h	Tue Jul 19 21:02:44 2016 +0200
+++ b/src/video/pandora/SDL_pandora.h	Wed Jul 20 21:00:36 2016 +0200
@@ -77,7 +77,7 @@
 void PND_maximizewindow(_THIS, SDL_Window * window);
 void PND_minimizewindow(_THIS, SDL_Window * window);
 void PND_restorewindow(_THIS, SDL_Window * window);
-void PND_setwindowgrab(_THIS, SDL_Window * window);
+void PND_setwindowgrab(_THIS, SDL_Window * window, SDL_bool grabbed);
 void PND_destroywindow(_THIS, SDL_Window * window);
 
 /* Window manager function */