Screenshot fix

This commit is contained in:
Magnus Norddahl 2016-06-17 11:24:21 +02:00
parent 12a50c140c
commit 35c078dc1e

View file

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