mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-23 03:55:44 -04:00
Implement CreateFrame() (#160)
This commit is contained in:
parent
e3cbbee000
commit
440581bb78
@ -241,8 +241,11 @@ struct Direct3DRMImpl : virtual public IDirect3DRM2 {
|
|||||||
}
|
}
|
||||||
HRESULT CreateFrame(IDirect3DRMFrame* parent, IDirect3DRMFrame2** outFrame) override
|
HRESULT CreateFrame(IDirect3DRMFrame* parent, IDirect3DRMFrame2** outFrame) override
|
||||||
{
|
{
|
||||||
MINIWIN_NOT_IMPLEMENTED();
|
auto frame = new Direct3DRMFrameImpl;
|
||||||
*outFrame = static_cast<IDirect3DRMFrame2*>(new Direct3DRMFrameImpl);
|
*outFrame = static_cast<IDirect3DRMFrame2*>(frame);
|
||||||
|
if (parent) {
|
||||||
|
parent->AddChild(static_cast<IDirect3DRMFrame*>(frame));
|
||||||
|
}
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
HRESULT CreateViewport(
|
HRESULT CreateViewport(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user