notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b8815f
)
fix a mistake in big endian conversion
author
notaz
<notasas@gmail.com>
Sat, 14 Oct 2023 22:46:48 +0000
(
01:46
+0300)
committer
notaz
<notasas@gmail.com>
Sat, 14 Oct 2023 22:46:48 +0000
(
01:46
+0300)
notaz/pcsx_rearmed#318
plugins/gpu_unai/gpu_inner_quantization.h
patch
|
blob
|
blame
|
history
diff --git
a/plugins/gpu_unai/gpu_inner_quantization.h
b/plugins/gpu_unai/gpu_inner_quantization.h
index
4368ddb
..
8a4e935
100644
(file)
--- 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)
{
- u
16 fbpos = (uintptr_t)pDst - (uintptr_t)
gpu_unai.vram;
+ u
intptr_t fbpos = pDst -
gpu_unai.vram;
u16 offset = ((fbpos & (0x7 << 10)) >> 7) | (fbpos & 0x7);
//clean overflow flags and add