VideoBuffer

This commit is contained in:
SuuperW 2019-09-30 11:36:27 -05:00
parent 7c75595b95
commit 5d5879bd26
1 changed files with 10 additions and 0 deletions

View File

@ -94,3 +94,13 @@ DLL void FrameAdvance()
NDS_exec<false>();
SPU_Emulate_user();
}
u16* VideoBuffer16bit()
{
return (u16*)GPU->GetDisplayInfo().masterNativeBuffer;
}
DLL void VideoBuffer32bit(s32* dst)
{
u16* v = VideoBuffer16bit();
ColorspaceConvertBuffer555To8888Opaque<true, false>(v, (u32*)dst, 256 * 192 * 2);
}