src/video/ataricommon/SDL_atarigl_c.h
changeset 2033 b657f0bc72c2
parent 1895 c121d94672cb
child 2859 99210400e8b9
     1.1 --- a/src/video/ataricommon/SDL_atarigl_c.h	Wed Sep 20 21:22:08 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_atarigl_c.h	Wed Sep 20 21:29:44 2006 +0000
     1.3 @@ -32,10 +32,7 @@
     1.4  
     1.5  #include "../SDL_sysvideo.h"
     1.6  
     1.7 -/* Hidden "this" pointer for the video functions */
     1.8 -#define _THIS   SDL_VideoDevice *this
     1.9 -
    1.10 -struct SDL_PrivateGLData
    1.11 +struct SDL_GLDriverData
    1.12  {
    1.13  
    1.14      int gl_active;              /* to stop switching drivers while we have a valid context */
    1.15 @@ -87,20 +84,20 @@
    1.16  };
    1.17  
    1.18  /* Variable names */
    1.19 -#define gl_active		(this->gl_data->gl_active)
    1.20 -#define gl_ctx			(this->gl_data->ctx)
    1.21 -#define gl_oldmesa		(this->gl_data->gl_oldmesa)
    1.22 -#define gl_pixelsize	(this->gl_data->gl_pixelsize)
    1.23 -#define gl_upsidedown	(this->gl_data->gl_upsidedown)
    1.24 -#define gl_shadow		(this->gl_data->gl_shadow)
    1.25 -#define gl_convert		(this->gl_data->ConvertSurface)
    1.26 -#define gl_copyshadow	(this->gl_data->CopyShadow)
    1.27 -#define gl_curformat	(this->gl_data->format)
    1.28 -#define gl_curdepth		(this->gl_data->depth)
    1.29 -#define gl_curstencil	(this->gl_data->stencil)
    1.30 -#define gl_curaccum		(this->gl_data->accum)
    1.31 -#define gl_curwidth		(this->gl_data->width)
    1.32 -#define gl_curheight	(this->gl_data->height)
    1.33 +#define gl_active		(_this->gl_data->gl_active)
    1.34 +#define gl_ctx			(_this->gl_data->ctx)
    1.35 +#define gl_oldmesa		(_this->gl_data->gl_oldmesa)
    1.36 +#define gl_pixelsize	(_this->gl_data->gl_pixelsize)
    1.37 +#define gl_upsidedown	(_this->gl_data->gl_upsidedown)
    1.38 +#define gl_shadow		(_this->gl_data->gl_shadow)
    1.39 +#define gl_convert		(_this->gl_data->ConvertSurface)
    1.40 +#define gl_copyshadow	(_this->gl_data->CopyShadow)
    1.41 +#define gl_curformat	(_this->gl_data->format)
    1.42 +#define gl_curdepth		(_this->gl_data->depth)
    1.43 +#define gl_curstencil	(_this->gl_data->stencil)
    1.44 +#define gl_curaccum		(_this->gl_data->accum)
    1.45 +#define gl_curwidth		(_this->gl_data->width)
    1.46 +#define gl_curheight	(_this->gl_data->height)
    1.47  
    1.48  /* OpenGL functions */
    1.49  extern int SDL_AtariGL_Init(_THIS, SDL_Surface * current);