src/SDL12_compat.c
changeset 57 9bc9f6285f0b
parent 56 a8a08936f60f
child 58 75a93435ce44
equal deleted inserted replaced
56:a8a08936f60f 57:9bc9f6285f0b
   184     Uint32 locked;
   184     Uint32 locked;
   185     void *blitmap;
   185     void *blitmap;
   186     unsigned int format_version;
   186     unsigned int format_version;
   187     int refcount;
   187     int refcount;
   188 } SDL12_Surface;
   188 } SDL12_Surface;
       
   189 
       
   190 typedef struct SDL12_Overlay
       
   191 {
       
   192     Uint32 format;
       
   193     int w;
       
   194     int h;
       
   195     int planes;
       
   196     Uint16 *pitches;
       
   197     Uint8 **pixels;
       
   198     void *hwfuncs;
       
   199     void *hwdata;
       
   200     Uint32 hw_overlay :1;
       
   201     Uint32 UnusedBits :31;
       
   202 } SDL12_Overlay;
   189 
   203 
   190 typedef struct
   204 typedef struct
   191 {
   205 {
   192     Uint32 hw_available :1;
   206     Uint32 hw_available :1;
   193     Uint32 wm_available :1;
   207     Uint32 wm_available :1;
  1786     FIXME("write me");
  1800     FIXME("write me");
  1787     //return SDL20_GetWindowWMInfo(VideoWindow20, info);
  1801     //return SDL20_GetWindowWMInfo(VideoWindow20, info);
  1788     return SDL20_Unsupported();
  1802     return SDL20_Unsupported();
  1789 }
  1803 }
  1790 
  1804 
  1791 struct private_yuvhwdata
  1805 DECLSPEC SDL12_Overlay * SDLCALL
  1792 {
       
  1793     SDL_SW_YUVTexture *texture;
       
  1794     SDL_Surface *display;
       
  1795     Uint32 display_format;
       
  1796 };
       
  1797 
       
  1798 DECLSPEC SDL_Overlay * SDLCALL
       
  1799 SDL_CreateYUVOverlay(int w, int h, Uint32 format, SDL12_Surface *display)
  1806 SDL_CreateYUVOverlay(int w, int h, Uint32 format, SDL12_Surface *display)
  1800 {
  1807 {
  1801     FIXME("write me");
  1808     FIXME("write me");
  1802     SDL20_Unsupported();
  1809     SDL20_Unsupported();
  1803     return NULL;
  1810     return NULL;
  1804 }
  1811 }
  1805 
  1812 
  1806 DECLSPEC int SDLCALL
  1813 DECLSPEC int SDLCALL
  1807 SDL_LockYUVOverlay(SDL_Overlay * overlay)
  1814 SDL_LockYUVOverlay(SDL12_Overlay * overlay)
  1808 {
  1815 {
  1809     FIXME("write me");
  1816     FIXME("write me");
  1810     return SDL20_Unsupported();
  1817     return SDL20_Unsupported();
  1811 }
  1818 }
  1812 
  1819 
  1813 DECLSPEC void SDLCALL
  1820 DECLSPEC void SDLCALL
  1814 SDL_UnlockYUVOverlay(SDL_Overlay * overlay)
  1821 SDL_UnlockYUVOverlay(SDL12_Overlay * overlay)
  1815 {
  1822 {
  1816     FIXME("write me");
  1823     FIXME("write me");
  1817 }
  1824 }
  1818 
  1825 
  1819 DECLSPEC int SDLCALL
  1826 DECLSPEC int SDLCALL
  1820 SDL_DisplayYUVOverlay(SDL_Overlay * overlay, SDL_Rect * dstrect)
  1827 SDL_DisplayYUVOverlay(SDL12_Overlay * overlay, SDL_Rect * dstrect)
  1821 {
  1828 {
  1822     FIXME("write me");
  1829     FIXME("write me");
  1823     return SDL20_Unsupported();
  1830     return SDL20_Unsupported();
  1824 }
  1831 }
  1825 
  1832 
  1826 DECLSPEC void SDLCALL
  1833 DECLSPEC void SDLCALL
  1827 SDL_FreeYUVOverlay(SDL_Overlay * overlay)
  1834 SDL_FreeYUVOverlay(SDL12_Overlay * overlay)
  1828 {
  1835 {
  1829     FIXME("write me");
  1836     FIXME("write me");
  1830 }
  1837 }
  1831 
  1838 
  1832 DECLSPEC int SDLCALL
  1839 DECLSPEC int SDLCALL