From 5fd5ab67116c9ac94a74d423517b07f30f09650e Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Thu, 29 Nov 2012 18:43:19 -0800 Subject: [PATCH] Revert "ui.backend.cocoa.views: make compatible with 10.6." This reverts commit 7f6f742fc3f2c295d18dbca1f8cba42cc22f58d0. --- basis/ui/backend/cocoa/views/views.factor | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/basis/ui/backend/cocoa/views/views.factor b/basis/ui/backend/cocoa/views/views.factor index 9c89dd209b..82b44d22ac 100644 --- a/basis/ui/backend/cocoa/views/views.factor +++ b/basis/ui/backend/cocoa/views/views.factor @@ -5,9 +5,9 @@ arrays assocs cocoa cocoa.application cocoa.classes cocoa.pasteboard cocoa.runtime cocoa.subclassing cocoa.types cocoa.views combinators core-foundation.strings core-graphics core-graphics.types core-text io.encodings.utf8 kernel locals -math math.order math.rectangles namespaces opengl sequences -system-info threads ui.gadgets ui.gadgets.private -ui.gadgets.worlds ui.gestures ui.private ; +math math.rectangles namespaces opengl sequences threads +ui.gadgets ui.gadgets.private ui.gadgets.worlds ui.gestures +ui.private ; IN: ui.backend.cocoa.views : send-mouse-moved ( view event -- ) @@ -306,12 +306,10 @@ CLASS: FactorView < NSOpenGLView NSTextInput METHOD: NSInteger conversationIdentifier [ self alien-address ] METHOD: void prepareOpenGL [ - os-version { 10 7 0 } after=? [ - self 1 -> setWantsBestResolutionOpenGLSurface: - self -> backingScaleFactor dup 1.0 > [ - gl-scale-factor set-global t retina? set-global - ] [ drop ] if - ] when + self 1 -> setWantsBestResolutionOpenGLSurface: + self -> backingScaleFactor dup 1.0 > [ + gl-scale-factor set-global t retina? set-global + ] [ drop ] if ] ! Initialization