From f175912347b1a7aec23963c7037f7f4a47280634 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 14 Jan 2002 18:08:59 +0000 Subject: [PATCH] added flushing for MacOS X buffered window immediatly when using wxWindow::Update git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/window.cpp | 6 ++++++ src/mac/window.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 61286ac4ec..e63dde07d7 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -1423,7 +1423,13 @@ void wxWindowMac::Update() { wxTopLevelWindowMac* win = MacGetTopLevelWindow( ) ; if ( win ) + { win->MacUpdate( 0 ) ; + if ( QDIsPortBuffered( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) ) ) + { + QDFlushPortBuffer( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) , NULL ) ; + } + } } wxTopLevelWindowMac* wxWindowMac::MacGetTopLevelWindow() const diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 61286ac4ec..e63dde07d7 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -1423,7 +1423,13 @@ void wxWindowMac::Update() { wxTopLevelWindowMac* win = MacGetTopLevelWindow( ) ; if ( win ) + { win->MacUpdate( 0 ) ; + if ( QDIsPortBuffered( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) ) ) + { + QDFlushPortBuffer( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) , NULL ) ; + } + } } wxTopLevelWindowMac* wxWindowMac::MacGetTopLevelWindow() const -- 2.50.0