From 2090c03d88298c9cbd04e696089b7816561fb5a0 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 6 Jun 2010 04:53:19 +0000 Subject: [PATCH] - Fixed: D3DFB::GetScreenshotBuffer() must not offset the buffer pointer for letterboxed modes, since the screenwipe speedup fixes also mean that this function no longer operates directly with the front buffer, but rather with a copy that is not letterboxed. SVN r2355 (trunk) --- src/win32/fb_d3d9.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/fb_d3d9.cpp b/src/win32/fb_d3d9.cpp index b21c1b003f..ea96a79cf6 100644 --- a/src/win32/fb_d3d9.cpp +++ b/src/win32/fb_d3d9.cpp @@ -1726,7 +1726,7 @@ void D3DFB::GetScreenshotBuffer(const BYTE *&buffer, int &pitch, ESSType &color_ } else { - buffer = (const BYTE *)lrect.pBits + lrect.Pitch * LBOffsetI; + buffer = (const BYTE *)lrect.pBits; pitch = lrect.Pitch; color_type = SS_BGRA; }