Bug 786979 - Use a new constant for returning ICoreWindow from GetNativeData. r=bbondy

This commit is contained in:
Jim Mathies 2012-09-07 14:51:02 -05:00
parent 16df0d74d2
commit 1be60a7fb4
2 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,7 @@ LayerManagerD3D10::Initialize(bool force)
*/
nsRefPtr<IDXGISwapChain1> swapChain1;
hr = dxgiFactory->CreateSwapChainForCoreWindow(
dxgiDevice, (IUnknown *)mWidget->GetNativeData(NS_NATIVE_WINDOW),
dxgiDevice, (IUnknown *)mWidget->GetNativeData(NS_NATIVE_ICOREWINDOW),
&swapDesc, nullptr, getter_AddRefs(swapChain1));
if (FAILED(hr)) {
return false;

View File

@ -85,6 +85,7 @@ typedef nsEventStatus (* EVENT_CALLBACK)(nsGUIEvent *event);
#define NS_NATIVE_TSF_THREAD_MGR 100
#define NS_NATIVE_TSF_CATEGORY_MGR 101
#define NS_NATIVE_TSF_DISPLAY_ATTR_MGR 102
#define NS_NATIVE_ICOREWINDOW 103 // winrt specific
#endif
#define NS_IWIDGET_IID \