mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-30 08:20:51 +00:00
fix screenshot
This commit is contained in:
parent
4047285029
commit
b249362d0f
1 changed files with 6 additions and 6 deletions
|
@ -104,21 +104,21 @@ void Vk_ScreenShot_f (void)
|
|||
{
|
||||
for (i = 0; i < buffSize; i += 4)
|
||||
{
|
||||
temp = buffer[i];
|
||||
buffer[i] = buffer[i + 2];
|
||||
buffer[i + 2] = temp;
|
||||
buffer[i + 3] = 255; // alpha component
|
||||
buffer[i + 3] = 255;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (i = 0; i < buffSize; i += 4)
|
||||
{
|
||||
buffer[i + 3] = 255;
|
||||
temp = buffer[i];
|
||||
buffer[i] = buffer[i + 2];
|
||||
buffer[i + 2] = temp;
|
||||
buffer[i + 3] = 255; // alpha component
|
||||
}
|
||||
}
|
||||
|
||||
ri.Vid_WriteScreenshot(vid.width, vid.height, 3, buffer);
|
||||
ri.Vid_WriteScreenshot(vid.width, vid.height, 4, buffer);
|
||||
|
||||
free(buffer);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue