Fix truecolor handling in mve playback
This has been broken for more than 5 years and no one reported it.
Perhaps truecolor movies are not used.
Fixes: acb664ae40
("Use proper type for mve backbuffers")
This commit is contained in:
parent
3b168b38fd
commit
75fd917980
|
@ -569,7 +569,7 @@ static int create_videobuf_handler(unsigned char, unsigned char minor, const uns
|
||||||
g_vBuffers.assign(g_width * g_height * 8, 0);
|
g_vBuffers.assign(g_width * g_height * 8, 0);
|
||||||
g_vBackBuf1 = &g_vBuffers[0];
|
g_vBackBuf1 = &g_vBuffers[0];
|
||||||
if (truecolor) {
|
if (truecolor) {
|
||||||
g_vBackBuf2 = reinterpret_cast<uint8_t *>(reinterpret_cast<uint16_t *>(g_vBackBuf1)) + (g_width * g_height);
|
g_vBackBuf2 = reinterpret_cast<uint8_t *>(reinterpret_cast<uint16_t *>(g_vBackBuf1) + (g_width * g_height));
|
||||||
} else {
|
} else {
|
||||||
g_vBackBuf2 = (g_vBackBuf1 + (g_width * g_height));
|
g_vBackBuf2 = (g_vBackBuf1 + (g_width * g_height));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue