From 7d9cc644cf6454ab901075548e73bdc5c64704ae Mon Sep 17 00:00:00 2001 From: BearOso Date: Tue, 14 Mar 2023 16:01:35 -0500 Subject: [PATCH] New hq2x: Fix ambiguity with abs and credit near. --- filter/hq2x.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/filter/hq2x.cpp b/filter/hq2x.cpp index 5855e9b5..bd9fafd0 100644 --- a/filter/hq2x.cpp +++ b/filter/hq2x.cpp @@ -29,7 +29,7 @@ /* Modified to 16-bit R5G6B5 for Snes9x */ -#include +#include #include static uint32_t yuvtable[65536]; @@ -41,13 +41,14 @@ static void init() return; initialized = true; + // YUV table generation public domain from nall by near for (unsigned i = 0; i < 65536; i++) { uint8_t R = (i >> 0) & 31; uint8_t G = (i >> 5) & 31; uint8_t B = (i >> 11) & 31; - // bgr555->bgr888 + // bgr565->bgr888 double r = (R << 3) | (R >> 2); double g = (G << 2) | (G >> 4); double b = (B << 3) | (B >> 2);