From 283eaf2e22d46e91ae4bc81837d9815621df7da1 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Sun, 2 Jun 2002 12:21:57 +0000 Subject: [PATCH] Treat NSBackingStoreRetained the same as NSBackingStoreBuffered. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13758 72102866-910b-0410-8b05-ffd578937521 --- Source/win32/WIN32Server.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/win32/WIN32Server.m b/Source/win32/WIN32Server.m index b598746..d399749 100644 --- a/Source/win32/WIN32Server.m +++ b/Source/win32/WIN32Server.m @@ -327,7 +327,7 @@ DWORD windowStyleForGSStyle(int style) win->useHDC = NO; } - if (type == NSBackingStoreBuffered) + if (type != NSBackingStoreNonretained) { HDC hdc, hdc2; HBITMAP hbitmap; @@ -1004,15 +1004,15 @@ validateWindow(HWND hwnd, RECT rect) HDC hdc = GetDC((HWND)hwnd); WINBOOL result; - /* - NSLog(@"validated window %d %@", hwnd, - NSStringFromRect(MSWindowRectToGS((HWND)hwnd, rect))); - */ result = BitBlt(hdc, rect.left, rect.top, (rect.right - rect.left), (rect.bottom - rect.top), win->hdc, rect.left, rect.top, SRCCOPY); if (!result) - NSLog(@"validateWindow failed %d", GetLastError()); + { + NSLog(@"validated window %d %@", hwnd, + NSStringFromRect(MSWindowRectToGS((HWND)hwnd, rect))); + NSLog(@"validateWindow failed %d", GetLastError()); + } ReleaseDC((HWND)hwnd, hdc); } } @@ -1120,7 +1120,7 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg, win = objc_malloc(sizeof(WIN_INTERN)); SetWindowLong(hwnd, GWL_USERDATA, (int)win); - if (type == NSBackingStoreBuffered) + if (type != NSBackingStoreNonretained) { HDC hdc, hdc2; HBITMAP hbitmap;