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