Jump to content

Directx9 ingame browser problem!!!


Go to solution Solved by WeedHex,

Recommended Posts

spacer.png  

41 minutes ago, TheEqualizer said:

What error? I don't see any error...it seems to me that you changed the render target (or display) format to a 16-bit format.

 

 

https://metin2.download/picture/3HWTB985RFZJJp7erHHISjrWBSKN6yRY/.gif

Edited by Metin2 Dev International
Core X - External 2 Internal

Your problem should be easy to figure out, since you know what triggers it.

What is stopping you from putting breakpoints around the code that triggers it, and checking the presentation parameters before and after that window opens?

The flickering seems to indicate that you are changing something about presentation.

22 minutes ago, TheEqualizer said:

Your problem should be easy to figure out, since you know what triggers it.

What is stopping you from putting breakpoints around the code that triggers it, and checking the presentation parameters before and after that window opens?

The flickering seems to indicate that you are changing something about presentation.

I checked but could not solve it. I processed many files and examined them with winmerge. There is no error or missing installation, but I cannot solve the problem.

If you made changes to your code recently, then perhaps you should undo all changes a start over.

I don't know the state of your code, my best guess is that you are messing with your presentation parameters somehow.

As I said before, you should check the presentation parameters. You can do that by running in debug, putting breakpoints around the places where you change presentation parameters, and observe the changes. That may help you figure out what is going on, and lead to a solution.

  • Premium
  • Solution
void CGraphicDevice::EnableWebBrowserMode(const RECT& c_rcWebPage)
{
    if (!ms_lpd3dDevice)
        return;

    D3DPRESENT_PARAMETERS& rkD3DPP = ms_d3dPresentParameter;

    g_isBrowserMode = true;

    if (D3DSWAPEFFECT_COPY == rkD3DPP.SwapEffect)
        return;

    g_kD3DPP = rkD3DPP;
    g_rcBrowser = c_rcWebPage;

    //rkD3DPP.Windowed=TRUE;
    //rkD3DPP.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

    rkD3DPP.SwapEffect = D3DSWAPEFFECT_COPY;
    rkD3DPP.BackBufferCount = 1;

    IDirect3DDevice8& rkD3DDev = *ms_lpd3dDevice;
    HRESULT hr = rkD3DDev.Reset(&rkD3DPP);
    if (FAILED(hr))
        return;

    STATEMANAGER.SetDefaultState();
}

Try with this.

24 minutes ago, WeedHex said:
void CGraphicDevice::EnableWebBrowserMode(const RECT& c_rcWebPage)
{
    if (!ms_lpd3dDevice)
        return;

    D3DPRESENT_PARAMETERS& rkD3DPP = ms_d3dPresentParameter;

    g_isBrowserMode = true;

    if (D3DSWAPEFFECT_COPY == rkD3DPP.SwapEffect)
        return;

    g_kD3DPP = rkD3DPP;
    g_rcBrowser = c_rcWebPage;

    //rkD3DPP.Windowed=TRUE;
    //rkD3DPP.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

    rkD3DPP.SwapEffect = D3DSWAPEFFECT_COPY;
    rkD3DPP.BackBufferCount = 1;

    IDirect3DDevice8& rkD3DDev = *ms_lpd3dDevice;
    HRESULT hr = rkD3DDev.Reset(&rkD3DPP);
    if (FAILED(hr))
        return;

    STATEMANAGER.SetDefaultState();
}

Try with this.

thx is work 😄

 

My new syserr 😄 : CREATE_WEBBROWSER_ERROR:0

Edited by WebElbir

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.