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
This commit is contained in:
FredKiefer 2002-06-02 12:21:57 +00:00
parent 38b62eca23
commit e7d0a80702

View file

@ -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;