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:
parent
f8733e94cf
commit
eeeffe43f8
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue