From 5d1b881d01c18be1c05be424fe10cd30f49281a7 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 6 Apr 2006 18:52:39 +0000 Subject: [PATCH] Fixed 16bpp issue with the player setup menu. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2168 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/sw/sw_draw.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/engine/sw/sw_draw.c b/engine/sw/sw_draw.c index a40b9decf..4f6843e8f 100644 --- a/engine/sw/sw_draw.c +++ b/engine/sw/sw_draw.c @@ -1485,6 +1485,51 @@ void SWDraw_TransPicTranslate (int x, int y, int width, int height, qbyte *sourc } } } + else if (r_pixbytes == 2) + { + unsigned short *dest; + dest = (unsigned short*)vid.buffer + y * vid.rowbytes + x; + + if (width & 7) + { // general + for (v=0 ; v