winport - fix crash making PNG screenshots
This commit is contained in:
parent
35e295e3dd
commit
db16f2f888
|
@ -174,7 +174,6 @@ void HK_QuickScreenShot(int param, bool justPressed)
|
|||
{
|
||||
u32* swapbuf = (u32*)malloc_alignedCacheLine(dispInfo.customWidth * dispInfo.customHeight * 2 * 4);
|
||||
ColorspaceConvertBuffer888XTo8888Opaque<true, true>((const u32*)dispInfo.masterCustomBuffer, swapbuf, dispInfo.customWidth * dispInfo.customHeight * 2);
|
||||
free_aligned(swapbuf);
|
||||
NDS_WritePNG_32bppBuffer(dispInfo.customWidth, dispInfo.customHeight*2, swapbuf, fname);
|
||||
free_aligned(swapbuf);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue