mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 20:04:31 +01:00
softgpu: Change framebuffer writes to act on actual 16 bit pixels if that's the framebuffer format.
This commit is contained in:
1 parent
917dc276dc
commit
f35e085859
2 files changed
+8
-9
No files matched your search
@@ -165,7 +165,7 @@ void CopyToCurrentFboFromRam(u8* data, int srcwidth, int srcheight, int dstwidth
|
||||
u32* buf = new u32[srcwidth*srcheight];
|
||||
for (int y = 0; y < srcheight; ++y) {
|
||||
for (int x = 0; x < srcwidth; ++x) {
|
||||
u16 src = *(u16*)&fb[4*x + 4*y*gstate.FrameBufStride()];
|
||||
u16 src = *(u16*)&fb[2*x + 2*y*gstate.FrameBufStride()];
|
||||
|
||||
if (gstate.FrameBufFormat() == GE_FORMAT_565)
|
||||
buf[x+y*srcwidth] = DecodeRGB565(src);
|
||||
|
||||
Reference in new issue
Block a user