It prevents a crash, but it's not fixed.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@767 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8a8240eeac
commit
0ce5b03f32
1 changed files with 3 additions and 1 deletions
|
@ -447,6 +447,8 @@ void MediaSW_ShowFrame8bit(qbyte *framedata, int inwidth, int inheight, qbyte *p
|
|||
{
|
||||
int y, x;
|
||||
|
||||
return; //the following code is actually 24 bit. :(
|
||||
|
||||
D_EnableBackBufferAccess (); // of all overlay stuff if drawing directly
|
||||
if (r_pixbytes == 1)
|
||||
{
|
||||
|
@ -463,7 +465,7 @@ void MediaSW_ShowFrame8bit(qbyte *framedata, int inwidth, int inheight, qbyte *p
|
|||
src = framedata + v*inwidth*4;
|
||||
{
|
||||
f = 0;
|
||||
fstep = ((inwidth)*0x10000)/vid.conwidth;
|
||||
fstep = (inwidth<<16)/vid.conwidth;
|
||||
for (x=0 ; x<vid.conwidth ; x+=4)
|
||||
{
|
||||
dest[x] = FindPallete(src[(f>>16)*4], src[(f>>16)*4+1], src[(f>>16)*4+2]);
|
||||
|
|
Loading…
Reference in a new issue