diff --git a/desmume/src/frontend/windows/DesHawkAPI.cpp b/desmume/src/frontend/windows/DesHawkAPI.cpp index 1c54792fb..e03cec8df 100644 --- a/desmume/src/frontend/windows/DesHawkAPI.cpp +++ b/desmume/src/frontend/windows/DesHawkAPI.cpp @@ -94,3 +94,13 @@ DLL void FrameAdvance() NDS_exec(); SPU_Emulate_user(); } + +u16* VideoBuffer16bit() +{ + return (u16*)GPU->GetDisplayInfo().masterNativeBuffer; +} +DLL void VideoBuffer32bit(s32* dst) +{ + u16* v = VideoBuffer16bit(); + ColorspaceConvertBuffer555To8888Opaque(v, (u32*)dst, 256 * 192 * 2); +}