Mercurial > projects > dwt-mac
diff dwt/opengl/GLCanvas.d @ 7:e831403a80a9
Add 'cast' to casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:30:35 +0200 |
parents | 1a8b3cb347e0 |
children | d8635bb48c7c |
line wrap: on
line diff
--- a/dwt/opengl/GLCanvas.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/opengl/GLCanvas.d Wed Aug 27 14:30:35 2008 +0200 @@ -105,14 +105,14 @@ attrib [pos++] = data.samples; } attrib [pos++] = 0; - pixelFormat = (NSOpenGLPixelFormat)new NSOpenGLPixelFormat().alloc(); + pixelFormat = cast(NSOpenGLPixelFormat)new NSOpenGLPixelFormat().alloc(); if (pixelFormat is null) { dispose (); DWT.error (DWT.ERROR_UNSUPPORTED_DEPTH); } pixelFormat.initWithAttributes(attrib); - glView = (NSOpenGLView)new NSOpenGLView().alloc(); + glView = cast(NSOpenGLView)new NSOpenGLView().alloc(); if (glView is null) { dispose (); DWT.error (DWT.ERROR_UNSUPPORTED_DEPTH);