src/SDL12_compat.c
changeset 57 9bc9f6285f0b
parent 56 a8a08936f60f
child 58 75a93435ce44
     1.1 --- a/src/SDL12_compat.c	Wed Feb 13 20:50:48 2019 -0500
     1.2 +++ b/src/SDL12_compat.c	Wed Feb 13 20:51:28 2019 -0500
     1.3 @@ -187,6 +187,20 @@
     1.4      int refcount;
     1.5  } SDL12_Surface;
     1.6  
     1.7 +typedef struct SDL12_Overlay
     1.8 +{
     1.9 +    Uint32 format;
    1.10 +    int w;
    1.11 +    int h;
    1.12 +    int planes;
    1.13 +    Uint16 *pitches;
    1.14 +    Uint8 **pixels;
    1.15 +    void *hwfuncs;
    1.16 +    void *hwdata;
    1.17 +    Uint32 hw_overlay :1;
    1.18 +    Uint32 UnusedBits :31;
    1.19 +} SDL12_Overlay;
    1.20 +
    1.21  typedef struct
    1.22  {
    1.23      Uint32 hw_available :1;
    1.24 @@ -1788,14 +1802,7 @@
    1.25      return SDL20_Unsupported();
    1.26  }
    1.27  
    1.28 -struct private_yuvhwdata
    1.29 -{
    1.30 -    SDL_SW_YUVTexture *texture;
    1.31 -    SDL_Surface *display;
    1.32 -    Uint32 display_format;
    1.33 -};
    1.34 -
    1.35 -DECLSPEC SDL_Overlay * SDLCALL
    1.36 +DECLSPEC SDL12_Overlay * SDLCALL
    1.37  SDL_CreateYUVOverlay(int w, int h, Uint32 format, SDL12_Surface *display)
    1.38  {
    1.39      FIXME("write me");
    1.40 @@ -1804,27 +1811,27 @@
    1.41  }
    1.42  
    1.43  DECLSPEC int SDLCALL
    1.44 -SDL_LockYUVOverlay(SDL_Overlay * overlay)
    1.45 +SDL_LockYUVOverlay(SDL12_Overlay * overlay)
    1.46  {
    1.47      FIXME("write me");
    1.48      return SDL20_Unsupported();
    1.49  }
    1.50  
    1.51  DECLSPEC void SDLCALL
    1.52 -SDL_UnlockYUVOverlay(SDL_Overlay * overlay)
    1.53 +SDL_UnlockYUVOverlay(SDL12_Overlay * overlay)
    1.54  {
    1.55      FIXME("write me");
    1.56  }
    1.57  
    1.58  DECLSPEC int SDLCALL
    1.59 -SDL_DisplayYUVOverlay(SDL_Overlay * overlay, SDL_Rect * dstrect)
    1.60 +SDL_DisplayYUVOverlay(SDL12_Overlay * overlay, SDL_Rect * dstrect)
    1.61  {
    1.62      FIXME("write me");
    1.63      return SDL20_Unsupported();
    1.64  }
    1.65  
    1.66  DECLSPEC void SDLCALL
    1.67 -SDL_FreeYUVOverlay(SDL_Overlay * overlay)
    1.68 +SDL_FreeYUVOverlay(SDL12_Overlay * overlay)
    1.69  {
    1.70      FIXME("write me");
    1.71  }