1
0
Fork 0

small fix for hq2x 32bpp to 16bpp conversion

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2966
This commit is contained in:
Sebastian Strohhäcker 2007-08-13 20:37:03 +00:00
parent f8733e94cf
commit eeeffe43f8
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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