- moved the palette stuff and some remaining scaling code from OpenGLFrameBuffer to DFrameBuffer and fixed GetFlashedPalette
This commit is contained in:
parent
fc91827900
commit
44dd48c7fa
6 changed files with 74 additions and 101 deletions
|
|
@ -627,7 +627,7 @@ void M_ScreenShot (const char *filename)
|
|||
if (file == NULL)
|
||||
{
|
||||
Printf ("Could not open %s\n", autoname.GetChars());
|
||||
screen->ReleaseScreenshotBuffer();
|
||||
delete[] buffer;
|
||||
return;
|
||||
}
|
||||
if (writepcx)
|
||||
|
|
@ -641,7 +641,7 @@ void M_ScreenShot (const char *filename)
|
|||
screen->GetWidth(), screen->GetHeight(), pitch, gamma);
|
||||
}
|
||||
delete file;
|
||||
screen->ReleaseScreenshotBuffer();
|
||||
delete[] buffer;
|
||||
|
||||
if (!screenshot_quiet)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue