src/SDL12_compat.c
changeset 26 34c2ae82780a
parent 25 2dfd8573dba0
child 27 4b3e208d2c10
equal deleted inserted replaced
25:2dfd8573dba0 26:34c2ae82780a
    34 //#include "video/SDL_sysvideo.h"
    34 //#include "video/SDL_sysvideo.h"
    35 //#include "video/SDL_pixels_c.h"
    35 //#include "video/SDL_pixels_c.h"
    36 //#include "render/SDL_yuv_sw_c.h"
    36 //#include "render/SDL_yuv_sw_c.h"
    37 
    37 
    38 // !!! IMPLEMENT_ME SDL_ConvertSurface
    38 // !!! IMPLEMENT_ME SDL_ConvertSurface
    39 // !!! IMPLEMENT_ME SDL_CreateThread
       
    40 // !!! IMPLEMENT_ME SDL_EventState
    39 // !!! IMPLEMENT_ME SDL_EventState
    41 // !!! IMPLEMENT_ME SDL_GL_GetAttribute
    40 // !!! IMPLEMENT_ME SDL_GL_GetAttribute
    42 // !!! IMPLEMENT_ME SDL_GL_Lock
    41 // !!! IMPLEMENT_ME SDL_GL_Lock
    43 // !!! IMPLEMENT_ME SDL_GL_SetAttribute
    42 // !!! IMPLEMENT_ME SDL_GL_SetAttribute
    44 // !!! IMPLEMENT_ME SDL_GL_Unlock
    43 // !!! IMPLEMENT_ME SDL_GL_Unlock
  2804 int SDL_CDResume(SDL12_CD *cdrom) { return CDUnsupported(); }
  2803 int SDL_CDResume(SDL12_CD *cdrom) { return CDUnsupported(); }
  2805 int SDL_CDStop(SDL12_CD *cdrom) { return CDUnsupported(); }
  2804 int SDL_CDStop(SDL12_CD *cdrom) { return CDUnsupported(); }
  2806 int SDL_CDEject(SDL12_CD *cdrom) { return CDUnsupported(); }
  2805 int SDL_CDEject(SDL12_CD *cdrom) { return CDUnsupported(); }
  2807 void SDL_CDClose(SDL12_CD *cdrom) {}
  2806 void SDL_CDClose(SDL12_CD *cdrom) {}
  2808 
  2807 
       
  2808 
       
  2809 #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
       
  2810 SDL_Thread *
       
  2811 SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
       
  2812 {
       
  2813     return SDL20_CreateThread(fn, NULL, data, pfnBeginThread, pfnEndThread);
       
  2814 }
       
  2815 #else
       
  2816 SDL_Thread *
       
  2817 SDL_CreateThread(int (SDLCALL *fn)(void *), void *data)
       
  2818 {
       
  2819     return SDL20_CreateThread(fn, NULL, data);
       
  2820 }
       
  2821 #endif
       
  2822 
       
  2823 
  2809 /* !!! FIXME: Removed from 2.0; do nothing. We can't even report failure. */
  2824 /* !!! FIXME: Removed from 2.0; do nothing. We can't even report failure. */
  2810 void SDL_KillThread(SDL_Thread *thread) {}
  2825 void SDL_KillThread(SDL_Thread *thread) {}
  2811 
  2826 
  2812 /* This changed from an opaque pointer to an int in 2.0. */
  2827 /* This changed from an opaque pointer to an int in 2.0. */
  2813 typedef struct _SDL12_TimerID *SDL12_TimerID;
  2828 typedef struct _SDL12_TimerID *SDL12_TimerID;