From eeeffe43f804c6615c5ed0527ef9d4ad4b6365a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Mon, 13 Aug 2007 20:37:03 +0000 Subject: [PATCH] small fix for hq2x 32bpp to 16bpp conversion Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2966 --- src/gui/render_templates_hq2x.h | 2 +- src/gui/render_templates_hq3x.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/render_templates_hq2x.h b/src/gui/render_templates_hq2x.h index c74d790a..4937af56 100644 --- a/src/gui/render_templates_hq2x.h +++ b/src/gui/render_templates_hq2x.h @@ -80,7 +80,7 @@ #endif #if SBPP == 32 -#define RGBtoYUV(c) _RGBtoYUV[((c & 0xf80000) >> 8) | ((c & 0x00fc00) >> 12) | ((c & 0x0000f8) >> 3)] +#define RGBtoYUV(c) _RGBtoYUV[((c & 0xf80000) >> 8) | ((c & 0x00fc00) >> 5) | ((c & 0x0000f8) >> 3)] #else #define RGBtoYUV(c) _RGBtoYUV[c] #endif diff --git a/src/gui/render_templates_hq3x.h b/src/gui/render_templates_hq3x.h index c4c2a59d..d879de8f 100644 --- a/src/gui/render_templates_hq3x.h +++ b/src/gui/render_templates_hq3x.h @@ -82,7 +82,7 @@ #endif #if SBPP == 32 -#define RGBtoYUV(c) _RGBtoYUV[((c & 0xf80000) >> 8) | ((c & 0x00fc00) >> 12) | ((c & 0x0000f8) >> 3)] +#define RGBtoYUV(c) _RGBtoYUV[((c & 0xf80000) >> 8) | ((c & 0x00fc00) >> 5) | ((c & 0x0000f8) >> 3)] #else #define RGBtoYUV(c) _RGBtoYUV[c] #endif