Screenshot fix

This commit is contained in:
Magnus Norddahl 2016-06-17 11:24:21 +02:00
parent 12a50c140c
commit 35c078dc1e
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ void DCanvas::GetScreenshotBuffer(const BYTE *&buffer, int &pitch, ESSType &colo
{
Lock(true);
buffer = GetBuffer();
pitch = GetPitch();
pitch = IsBgra() ? GetPitch() * 4 : GetPitch();
color_type = IsBgra() ? SS_BGRA : SS_PAL;
}