~ubuntu-branches/ubuntu/vivid/clutter-1.0/vivid-proposed

« back to all changes in this revision

Viewing changes to clutter/osx/clutter-backend-osx.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-07-18 17:21:49 UTC
  • mfrom: (1.2.1 upstream) (4.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20100718172149-j6s9u4chocaoykme
Tags: 1.2.12-1
* New upstream release.
* debian/libclutter-1.0-0.symbols,
  debian/rules:
  - Add a symbols file.
* debian/rules,
  debian/source/format:
  - Switch to source format 3.0 (quilt).
* debian/control.in:
  - Standards-Version is 3.9.0, no changes needed.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * Lesser General Public License for more details.
16
16
 *
17
17
 * You should have received a copy of the GNU Lesser General Public
18
 
 * License along with this library; if not, write to the
19
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
 
 * Boston, MA 02111-1307, USA.
 
18
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 
19
 *
 
20
 *
21
21
 */
22
22
#include "config.h"
23
23
 
61
61
   */
62
62
  NSOpenGLPixelFormatAttribute attrs[] = {
63
63
    NSOpenGLPFADoubleBuffer,
 
64
    NSOpenGLPFADepthSize, 24,
 
65
    NSOpenGLPFAStencilSize, 8,
64
66
    0
65
67
  };
66
68
  self->pixel_format = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs];
68
70
                   initWithFormat: self->pixel_format
69
71
                     shareContext: nil];
70
72
 
71
 
  /* Enable vblank sync - http://developer.apple.com/qa/qa2007/qa1521.html*/
72
 
  const long sw = 1;
 
73
  /* Enable vblank sync - http://developer.apple.com/qa/qa2007/qa1521.html */
 
74
  #ifdef MAC_OS_X_VERSION_10_5
 
75
        const int sw = 1;
 
76
  #else
 
77
    const long sw = 1;
 
78
  #endif
73
79
  [self->context setValues:&sw forParameter: NSOpenGLCPSwapInterval];
74
80
 
75
81
  /* FIXME: move the debugging bits to cogl */
96
102
  return CLUTTER_FEATURE_STAGE_MULTIPLE|CLUTTER_FEATURE_STAGE_USER_RESIZE;
97
103
}
98
104
 
99
 
static ClutterActor*
 
105
static ClutterStageWindow*
100
106
clutter_backend_osx_create_stage (ClutterBackend  *backend,
101
107
                                  ClutterStage    *wrapper,
102
108
                                  GError         **error)
103
109
{
104
 
  ClutterActor *impl;
 
110
  ClutterStageWindow *impl;
105
111
 
106
112
  CLUTTER_NOTE (BACKEND, "create_stage: wrapper=%p", wrapper);
107
113