diff --git a/Common/Data/Convert/ColorConv.cpp b/Common/Data/Convert/ColorConv.cpp index 7e9009c4c2..a13bdc0e00 100644 --- a/Common/Data/Convert/ColorConv.cpp +++ b/Common/Data/Convert/ColorConv.cpp @@ -504,8 +504,7 @@ void ConvertABGR4444ToRGBA8888(u32 *dst32, const u16 *src, u32 numPixels) { } } -void ConvertRGBA4444ToBGRA8888(u32 *dst32, const u16 *src, u32 numPixels) { - u8 *dst = (u8 *)dst32; +void ConvertRGBA4444ToBGRA8888(u32 *dst, const u16 *src, u32 numPixels) { for (u32 x = 0; x < numPixels; x++) { u16 c = src[x]; u32 r = Convert4To8(c & 0x000f); diff --git a/Core/HLE/sceIo.cpp b/Core/HLE/sceIo.cpp index 7382373c63..cc3c3b655a 100644 --- a/Core/HLE/sceIo.cpp +++ b/Core/HLE/sceIo.cpp @@ -1989,9 +1989,9 @@ static u32 sceIoDevctl(const char *name, int cmd, u32 argAddr, int argLen, u32 o case 0x20: // EMULATOR_DEVCTL__EMIT_SCREENSHOT { PSPPointer topaddr; - u32 linesize, pixelFormat; + u32 linesize; - __DisplayGetFramebuf(&topaddr, &linesize, &pixelFormat, 0); + __DisplayGetFramebuf(&topaddr, &linesize, nullptr, 0); // TODO: Convert based on pixel format / mode / something? host->SendDebugScreenshot(topaddr, linesize, 272); return 0;