From b6074b95fafe484484ffff8e42587c7b2f1e72b2 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Thu, 30 Apr 2009 22:35:15 -0500 Subject: [PATCH] get rid of variable-based pixel format crap in cocoa.views --- basis/cocoa/views/views.factor | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/basis/cocoa/views/views.factor b/basis/cocoa/views/views.factor index 3c60a6a7c1..69d0f98618 100644 --- a/basis/cocoa/views/views.factor +++ b/basis/cocoa/views/views.factor @@ -42,31 +42,14 @@ CONSTANT: NSOpenGLPFAAllowOfflineRenderers 96 CONSTANT: NSOpenGLPFAVirtualScreenCount 128 CONSTANT: NSOpenGLCPSwapInterval 222 - - -: with-software-renderer ( quot -- ) - [ t software-renderer? ] dip with-variable ; inline - -: with-multisample ( quot -- ) - [ t multisample? ] dip with-variable ; inline - : ( attributes -- pixelfmt ) NSOpenGLPixelFormat -> alloc swap [ % NSOpenGLPFADepthSize , 16 , - software-renderer? get [ - NSOpenGLPFARendererID , kCGLRendererGenericFloatID , - ] when - multisample? get [ - NSOpenGLPFASupersample , - NSOpenGLPFASampleBuffers , 1 , - NSOpenGLPFASamples , 8 , - ] when + ! NSOpenGLPFARendererID , kCGLRendererGenericFloatID , + ! NSOpenGLPFASupersample , + ! NSOpenGLPFASampleBuffers , 1 , + ! NSOpenGLPFASamples , 8 , 0 , ] int-array{ } make -> initWithAttributes: