Implement CreateFrame() (#160)

This commit is contained in:
Anders Jenbo 2025-05-25 02:40:50 +02:00 committed by GitHub
parent e3cbbee000
commit 440581bb78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,8 +241,11 @@ struct Direct3DRMImpl : virtual public IDirect3DRM2 {
}
HRESULT CreateFrame(IDirect3DRMFrame* parent, IDirect3DRMFrame2** outFrame) override
{
MINIWIN_NOT_IMPLEMENTED();
*outFrame = static_cast<IDirect3DRMFrame2*>(new Direct3DRMFrameImpl);
auto frame = new Direct3DRMFrameImpl;
*outFrame = static_cast<IDirect3DRMFrame2*>(frame);
if (parent) {
parent->AddChild(static_cast<IDirect3DRMFrame*>(frame));
}
return DD_OK;
}
HRESULT CreateViewport(