From 0ce5b03f320147ab7bc2e21a8994de957b8ed438 Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 7 Jan 2005 03:20:12 +0000 Subject: [PATCH] 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 --- engine/sw/d_trans.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/sw/d_trans.c b/engine/sw/d_trans.c index 7ee0d5a36..0702ac0d1 100644 --- a/engine/sw/d_trans.c +++ b/engine/sw/d_trans.c @@ -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>16)*4], src[(f>>16)*4+1], src[(f>>16)*4+2]);