SHARE
TWEET

Untitled

a guest Dec 6th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void CGraphicDevice::EnableWebBrowserMode(const RECT& c_rcWebPage)
  2. {
  3.     if (!ms_lpd3dDevice)
  4.         return;
  5.  
  6.     D3DPRESENT_PARAMETERS& rkD3DPP=ms_d3dPresentParameter;
  7.    
  8.     g_isBrowserMode=true;
  9.  
  10.     if (D3DSWAPEFFECT_COPY==rkD3DPP.SwapEffect)
  11.         return;
  12.  
  13.     g_kD3DPP=rkD3DPP;
  14.     g_rcBrowser=c_rcWebPage;
  15.    
  16.     //rkD3DPP.Windowed=TRUE;
  17.     rkD3DPP.SwapEffect=D3DSWAPEFFECT_COPY;
  18.     rkD3DPP.BackBufferCount = 1;
  19.     rkD3DPP.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;
  20.    
  21.     IDirect3DDevice8& rkD3DDev=*ms_lpd3dDevice;
  22.     HRESULT hr=rkD3DDev.Reset(&rkD3DPP);
  23.     if (FAILED(hr))
  24.         return;
  25.    
  26.     STATEMANAGER.SetDefaultState();
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top