#if defined(CONFIG_LINUX)
#include <sys/shm.h>
#endif
-//#include "SDL_opengl.h"
+/* #include "SDL_opengl.h" */
MULTI_DEBUG_CHANNEL(tizen, maru_sdl);
SDL_BlitSurface((SDL_Surface *)mts->finger_point_surface, NULL, surface_screen, &rect);
}
}
- } //end of draw multi-touch
+ } /* end of draw multi-touch */
}
SDL_UpdateRect(surface_screen, 0, 0, 0, 0);
}
#endif
-void maruskin_sdl_init(uint64 swt_handle, int lcd_size_width, int lcd_size_height, bool is_resize)
+void maruskin_sdl_init(uint64 swt_handle,
+ int lcd_size_width, int lcd_size_height, bool is_resize)
{
gchar SDL_windowhack[32];
SDL_SysWMinfo info;
SDL_Quit();
+#ifdef SDL_THREAD
+ pthread_cond_destroy(&sdl_cond);
+#endif
+ pthread_mutex_destroy(&sdl_mutex);
+
#if defined(CONFIG_LINUX)
if (shmctl(g_shmid, IPC_RMID, 0) == -1) {
- ERR("shmctl failed\n");
- perror("maru_sdl.c: ");
+ ERR("shmctl failed\n");
+ perror("maru_sdl.c: ");
}
#endif
}
memset(&ev, 0, sizeof(ev));
ev.resize.type = SDL_VIDEORESIZE;
- //This function is thread safe, and can be called from other threads safely.
+ /* This function is thread safe,
+ and can be called from other threads safely. */
SDL_PushEvent(&ev);
}