From d96f6d3197b5b43b7c1f3007d9b9174f8b1698e1 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Sat, 2 May 2009 17:54:45 -0500 Subject: [PATCH] oops, forgot backing-store support on windows. also "robust" is useless --- basis/ui/backend/cocoa/cocoa.factor | 1 - basis/ui/backend/windows/windows.factor | 2 ++ basis/ui/gadgets/worlds/worlds-docs.factor | 2 +- basis/ui/pixel-formats/pixel-formats.factor | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/basis/ui/backend/cocoa/cocoa.factor b/basis/ui/backend/cocoa/cocoa.factor index dd207aa4f9..5b1b4b0c2a 100755 --- a/basis/ui/backend/cocoa/cocoa.factor +++ b/basis/ui/backend/cocoa/cocoa.factor @@ -30,7 +30,6 @@ PIXEL-FORMAT-ATTRIBUTE-TABLE: NSOpenGLPFA { } H{ { windowed { $ NSOpenGLPFAWindow } } { accelerated { $ NSOpenGLPFAAccelerated } } { software-rendered { $ NSOpenGLPFASingleRenderer $ kCGLRendererGenericFloatID } } - { robust { $ NSOpenGLPFARobust } } { backing-store { $ NSOpenGLPFABackingStore } } { multisampled { $ NSOpenGLPFAMultisample } } { supersampled { $ NSOpenGLPFASupersample } } diff --git a/basis/ui/backend/windows/windows.factor b/basis/ui/backend/windows/windows.factor index 21bf5c74eb..cc0c30f05e 100755 --- a/basis/ui/backend/windows/windows.factor +++ b/basis/ui/backend/windows/windows.factor @@ -26,6 +26,7 @@ PIXEL-FORMAT-ATTRIBUTE-TABLE: WGL_ARB { $ WGL_SUPPORT_OPENGL_ARB 1 } H{ { windowed { $ WGL_DRAW_TO_WINDOW_ARB 1 } } { accelerated { $ WGL_ACCELERATION_ARB $ WGL_FULL_ACCELERATION_ARB } } { software-rendered { $ WGL_ACCELERATION_ARB $ WGL_NO_ACCELERATION_ARB } } + { backing-store { $ WGL_SWAP_METHOD_ARB $ WGL_SWAP_COPY_ARB } } { color-float { $ WGL_TYPE_RGBA_FLOAT_ARB 1 } } { color-bits { $ WGL_COLOR_BITS_ARB } } { red-bits { $ WGL_RED_BITS_ARB } } @@ -68,6 +69,7 @@ CONSTANT: pfd-flag-map H{ { offscreen $ PFD_DRAW_TO_BITMAP } { fullscreen $ PFD_DRAW_TO_WINDOW } { windowed $ PFD_DRAW_TO_WINDOW } + { backing-store $ PFD_SWAP_COPY } { software-rendered $ PFD_GENERIC_FORMAT } } diff --git a/basis/ui/gadgets/worlds/worlds-docs.factor b/basis/ui/gadgets/worlds/worlds-docs.factor index e3c1226f22..ad9f3f8d4f 100644 --- a/basis/ui/gadgets/worlds/worlds-docs.factor +++ b/basis/ui/gadgets/worlds/worlds-docs.factor @@ -1,6 +1,6 @@ USING: ui.gadgets ui.render ui.text ui.text.private ui.gestures ui.backend help.markup help.syntax -models opengl strings ; +models opengl sequences strings ui.pixel-formats ; IN: ui.gadgets.worlds HELP: user-input diff --git a/basis/ui/pixel-formats/pixel-formats.factor b/basis/ui/pixel-formats/pixel-formats.factor index 98b1dab88e..8b09402b0f 100644 --- a/basis/ui/pixel-formats/pixel-formats.factor +++ b/basis/ui/pixel-formats/pixel-formats.factor @@ -11,7 +11,6 @@ SYMBOLS: windowed accelerated software-rendered - robust backing-store multisampled supersampled