src/video/quartz/SDL_QuartzVideo.h
changeset 876 9e84d106ec19
parent 779 68c8da837fc0
child 1181 49d3efec6651
equal deleted inserted replaced
875:c2ff9786fbba 876:9e84d106ec19
   105     Uint8*             sw_buffers[2];      /* pointers to the two software buffers for double-buffer emulation */
   105     Uint8*             sw_buffers[2];      /* pointers to the two software buffers for double-buffer emulation */
   106     SDL_Thread         *thread;            /* thread for async updates to the screen */
   106     SDL_Thread         *thread;            /* thread for async updates to the screen */
   107     SDL_sem            *sem1, *sem2;       /* synchronization for async screen updates */
   107     SDL_sem            *sem1, *sem2;       /* synchronization for async screen updates */
   108     Uint8              *current_buffer;    /* the buffer being copied to the screen */
   108     Uint8              *current_buffer;    /* the buffer being copied to the screen */
   109     BOOL               quit_thread;        /* used to quit the async blitting thread */
   109     BOOL               quit_thread;        /* used to quit the async blitting thread */
       
   110     SInt32             system_version;     /* used to dis-/enable workarounds depending on the system version */
   110     
   111     
   111     ImageDescriptionHandle yuv_idh;
   112     ImageDescriptionHandle yuv_idh;
   112     MatrixRecordPtr        yuv_matrix;
   113     MatrixRecordPtr        yuv_matrix;
   113     DecompressorComponent  yuv_codec;
   114     DecompressorComponent  yuv_codec;
   114     ImageSequence          yuv_seq;
   115     ImageSequence          yuv_seq;
   150 #define thread (this->hidden->thread)
   151 #define thread (this->hidden->thread)
   151 #define sem1 (this->hidden->sem1)
   152 #define sem1 (this->hidden->sem1)
   152 #define sem2 (this->hidden->sem2)
   153 #define sem2 (this->hidden->sem2)
   153 #define current_buffer (this->hidden->current_buffer)
   154 #define current_buffer (this->hidden->current_buffer)
   154 #define quit_thread (this->hidden->quit_thread)
   155 #define quit_thread (this->hidden->quit_thread)
       
   156 #define system_version (this->hidden->system_version)
   155 
   157 
   156 /* grab states - the input is in one of these states */
   158 /* grab states - the input is in one of these states */
   157 enum {
   159 enum {
   158     QZ_UNGRABBED = 0,
   160     QZ_UNGRABBED = 0,
   159     QZ_VISIBLE_GRAB,
   161     QZ_VISIBLE_GRAB,