From c79e0cd6055eabe4831628e17177b451781e7e80 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 22 Dec 2019 19:43:27 +0100 Subject: [PATCH] minor fix in Load_SCR() OCP+ detection --- src/cpcformats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpcformats.c b/src/cpcformats.c index fb4c81ba..224b8564 100644 --- a/src/cpcformats.c +++ b/src/cpcformats.c @@ -573,7 +573,7 @@ void Load_SCR(T_IO_Context * context) inkr = (context->Palette[pal_data[12*i]].G / 86) * 9 + (context->Palette[pal_data[12*i]].R / 86) * 3 + (context->Palette[pal_data[12*i]].B / 86); inkb = (context->Palette[pal_data[12*i+1]].G / 86) * 9 + (context->Palette[pal_data[12*i+1]].R / 86) * 3 + (context->Palette[pal_data[12*i+1]].B / 86); inkg = (context->Palette[pal_data[12*i+2]].G / 86) * 9 + (context->Palette[pal_data[12*i+2]].R / 86) * 3 + (context->Palette[pal_data[12*i+2]].B / 86); - if (inkg < 11 || inkb < 11 || inkg < 11) + if (inkr < 11 || inkb < 11 || inkg < 11) ocp_plus_palette = 0; } if (ocp_plus_palette)