From: notaz Date: Sat, 14 Oct 2023 22:46:48 +0000 (+0300) Subject: fix a mistake in big endian conversion X-Git-Tag: r24l~126 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4b8ccaec2bf519d7cf4e836ffb6569203f0aa22;p=pcsx_rearmed.git fix a mistake in big endian conversion notaz/pcsx_rearmed#318 --- diff --git a/plugins/gpu_unai/gpu_inner_quantization.h b/plugins/gpu_unai/gpu_inner_quantization.h index 4368ddb8..8a4e9354 100644 --- a/plugins/gpu_unai/gpu_inner_quantization.h +++ b/plugins/gpu_unai/gpu_inner_quantization.h @@ -89,7 +89,7 @@ GPU_INLINE u16 gpuColorQuantization24(u32 uSrc24, const le16_t *pDst) { if (DITHER) { - u16 fbpos = (uintptr_t)pDst - (uintptr_t)gpu_unai.vram; + uintptr_t fbpos = pDst - gpu_unai.vram; u16 offset = ((fbpos & (0x7 << 10)) >> 7) | (fbpos & 0x7); //clean overflow flags and add