mirror of https://github.com/ZDoom/gzdoom.git
Screenshot fix
This commit is contained in:
parent
12a50c140c
commit
35c078dc1e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue