From 81f18cab301405ec071aa1078fd177fd5b4a3d53 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 10 Aug 2009 03:42:53 +0000 Subject: [PATCH] fix bilinear filter after change to 32bpp --- desmume/src/windows/filter/bilinear.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/desmume/src/windows/filter/bilinear.cpp b/desmume/src/windows/filter/bilinear.cpp index c3db6b25d..a1a3b49aa 100644 --- a/desmume/src/windows/filter/bilinear.cpp +++ b/desmume/src/windows/filter/bilinear.cpp @@ -6,15 +6,15 @@ #include "types.h" -int systemRedShift = 24; -int systemGreenShift = 16; -int systemBlueShift = 8; +int systemRedShift = 16; +int systemGreenShift = 8; +int systemBlueShift = 0; /* #define RGB1(r,g,b) ((r)>>3) << systemRedShift |\ ((g) >> 3) << systemGreenShift |\ ((b) >> 3) << systemBlueShift\ */ -#define RGB1(r,g,b)(((r))<> systemRedShift) & 0x1f) << 3; - *row++ = ((color >> systemGreenShift) & 0x1f) << 3; - *row++ = ((color >> systemBlueShift) & 0x1f) << 3; + *row++ = ((color >> (systemRedShift)) ) ; + *row++ = ((color >> (systemGreenShift)) ) ; + *row++ = ((color >> (systemBlueShift)) ) ; } // any remaining elements to be written to 'row' are a replica of the // preceding pixel