Additional fixes to ZipFileLoader

This commit is contained in:
Henrik Rydgård committed 2026-03-08 12:33:46 +01:00
1 parent 4f09c24825
commit 0a1be41fa7
3 files changed
+51 -18

No files matched your search

+1
View File
@@ -2201,6 +2201,7 @@ bool FramebufferManagerCommon::NotifyFramebufferCopy(u32 src, u32 dst, int size,
// awkward visual artefacts.
const u8 *srcBase = Memory::GetPointerUnchecked(src);
GEBufferFormat srcFormat = channel == RASTER_DEPTH ? GE_FORMAT_DEPTH16 : dstBuffer->fb_format;
// TODO: srcStride here looks suspicious! Actually the whole calculation does...
int srcStride = channel == RASTER_DEPTH ? dstBuffer->z_stride : dstBuffer->fb_stride;
DrawPixels(dstBuffer, 0, dstY, srcBase, srcFormat, srcStride, dstBuffer->width, dstH, channel, "MemcpyFboUpload_DrawPixels");
SetColorUpdated(dstBuffer, skipDrawReason);