src/video/quartz/SDL_QuartzVideo.h
changeset 155 2d162219f433
parent 58 bd6b0a910a65
child 158 4382c38dfbee
equal deleted inserted replaced
154:50d2b5305c2c 155:2d162219f433
    81     CFDictionaryRef    mode;
    81     CFDictionaryRef    mode;
    82     CFDictionaryRef    save_mode;
    82     CFDictionaryRef    save_mode;
    83     CFArrayRef         mode_list;
    83     CFArrayRef         mode_list;
    84     CGDirectPaletteRef palette;
    84     CGDirectPaletteRef palette;
    85     NSOpenGLContext    *gl_context;
    85     NSOpenGLContext    *gl_context;
    86     int                width, height, bpp;
    86     Uint32             width, height, bpp;
    87     Uint32             flags;
    87     Uint32             flags;
       
    88     SDL_bool           video_is_set; /* tell if the video mode was set */
    88     
    89     
    89     /* Window-only fields */
    90     /* Window-only fields */
    90     NSWindow        *window;
    91     NSWindow        *window;
    91     NSQuickDrawView *view;
    92     NSQuickDrawView *view;
    92     
    93     
   103 #define gl_context (this->hidden->gl_context)
   104 #define gl_context (this->hidden->gl_context)
   104 #define device_width (this->hidden->width)
   105 #define device_width (this->hidden->width)
   105 #define device_height (this->hidden->height)
   106 #define device_height (this->hidden->height)
   106 #define device_bpp (this->hidden->bpp)
   107 #define device_bpp (this->hidden->bpp)
   107 #define mode_flags (this->hidden->flags)
   108 #define mode_flags (this->hidden->flags)
       
   109 #define video_set (this->hidden->video_is_set)
   108 #define window (this->hidden->window)
   110 #define window (this->hidden->window)
   109 #define windowView (this->hidden->view)
   111 #define windowView (this->hidden->view)
   110 
   112 
   111 /* Interface for hardware fill not (yet) in the public API */
   113 /* Interface for hardware fill not (yet) in the public API */
   112 int CGSDisplayHWFill (CGDirectDisplayID id, unsigned int x, unsigned int y, 
   114 int CGSDisplayHWFill (CGDirectDisplayID id, unsigned int x, unsigned int y,