/* The Win32 BITMAPINFOHEADER struct (40 bytes) */
Uint32 biSize;
- Sint32 biWidth;
+ Sint32 biWidth = 0;
Sint32 biHeight = 0;
Uint16 biPlanes;
- Uint16 biBitCount;
- Uint32 biCompression;
+ Uint16 biBitCount = 0;
+ Uint32 biCompression = BI_RGB;
Uint32 biSizeImage;
Sint32 biXPelsPerMeter;
Sint32 biYPelsPerMeter;
switch (ev->type)
{
#if !SDL_EVENTS_DISABLED
- SDL_Event event;
#endif /* !SDL_EVENTS_DISABLED */
case ECORE_EVENT_JOYSTICK_EVENT_TYPE_CONNECTED:
s_bDeviceAttached = SDL_TRUE;
#define SDLTEST_FINAL_RESULT_FORMAT ">>> %s '%s': %s\n"
/* ! \brief Timeout for single test case execution */
-static Uint32 SDLTest_TestCaseTimeout = 3600;
+//static Uint32 SDLTest_TestCaseTimeout = 3600;
/**
* Generates a random run seed string for the harness. The generated seed
*
* \return Timer id or -1 on failure.
*/
+/*
static SDL_TimerID
SDLTest_SetTestTimeout(int timeout, void (*callback)())
{
return -1;
}
- /* Init SDL timer if not initialized before */
+ //Init SDL timer if not initialized before
if (SDL_WasInit(SDL_INIT_TIMER) == 0) {
if (SDL_InitSubSystem(SDL_INIT_TIMER)) {
SDLTest_LogError("Failed to init timer subsystem: %s", SDL_GetError());
}
}
- /* Set timer */
+ // Set timer
timeoutInMilliseconds = timeout * 1000;
timerID = SDL_AddTimer(timeoutInMilliseconds, (SDL_TimerCallback)callback, 0x0);
if (timerID == 0) {
return timerID;
}
+*/
/**
* \brief Timeout handler. Aborts test run and exits harness process.
*/
+/*
static SDL_NORETURN void
SDLTest_BailOut()
{
SDLTest_LogError("TestCaseTimeout timer expired. Aborting test run.");
- exit(TEST_ABORTED); /* bail out from the test */
+ exit(TEST_ABORTED); // bail out from the test
}
+*/
/**
* \brief Execute a test using the given execution key.
surface->pixels,
surface->h * surface->pitch);
- data->surface = wl_compositor_create_surface(ecore_wl2_display_compositor_get(wl2_display));
+ data->surface = (Ecore_Wl2_Surface*) wl_compositor_create_surface(ecore_wl2_display_compositor_get(wl2_display));
data->hot_x = hot_x;
data->hot_y = hot_y;
wl_buffer_destroy(d->buffer);
if (d->surface)
- wl_surface_destroy(d->surface);
+ wl_surface_destroy((struct wl_surface*)d->surface);
/* Not sure what's meant to happen to shm_data */
free (cursor->driverdata);
return context;
}
-void
+int
Tizen_GLES_SwapWindow(_THIS, SDL_Window *window)
{
- SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
+ int ret = SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
SDL_WindowData* wind = (SDL_WindowData*)window->driverdata;
int x, y, w, h;
if (wind->received_rotation != TIZEN_ROTATION_RECEIVED_NONE) {
_tizen_quickpanel_on(window->driverdata);
}
}
+ return ret;
}
int
extern int Tizen_GLES_LoadLibrary(_THIS, const char *path);
extern SDL_GLContext Tizen_GLES_CreateContext(_THIS, SDL_Window *window);
-extern void Tizen_GLES_SwapWindow(_THIS, SDL_Window *window);
+extern int Tizen_GLES_SwapWindow(_THIS, SDL_Window *window);
extern int Tizen_GLES_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context);
extern void Tizen_GLES_DeleteContext(_THIS, SDL_GLContext context);
extern int Tizen_GLES_GetAlphaSize(_THIS);
_tizen_set_window_size(window, window_w, window_h);
- SDL_VideoData* _this = SDL_GetVideoDevice()->driverdata;
#if SDL_VIDEO_OPENGL_EGL
if (window->flags & SDL_WINDOW_OPENGL)
{