mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 06:42:09 +00:00
Merge branch 'truecolor' of http://github.com/dpjudas/dpdoom
# Conflicts: # src/v_video.cpp
This commit is contained in:
commit
08166473ca
1 changed files with 1 additions and 1 deletions
|
@ -814,7 +814,7 @@ void DSimpleCanvas::Resize(int width, int height)
|
|||
Pitch = width + MAX(0, CPU.DataL1LineSize - 8);
|
||||
}
|
||||
}
|
||||
int bytes_per_pixel = swtruecolor ? 4 : 1;
|
||||
int bytes_per_pixel = Bgra ? 4 : 1;
|
||||
MemBuffer = new BYTE[Pitch * height * bytes_per_pixel];
|
||||
memset (MemBuffer, 0, Pitch * height * bytes_per_pixel);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue