diff --git a/src/engine/engine.h b/src/engine/engine.h index f69eb512c..230b8daee 100644 --- a/src/engine/engine.h +++ b/src/engine/engine.h @@ -54,8 +54,8 @@ class DivWorkPool; #define DIV_UNSTABLE -#define DIV_VERSION "DX9 Test III" -#define DIV_ENGINE_VERSION 204 +#define DIV_VERSION "DX9 Test IV" +#define DIV_ENGINE_VERSION 205 // for imports #define DIV_VERSION_MOD 0xff01 #define DIV_VERSION_FC 0xff02 diff --git a/src/gui/render/renderDX9.cpp b/src/gui/render/renderDX9.cpp index a2bba061c..81bb57859 100644 --- a/src/gui/render/renderDX9.cpp +++ b/src/gui/render/renderDX9.cpp @@ -370,12 +370,17 @@ bool FurnaceGUIRenderDX9::init(SDL_Window* win, int swapInt) { priv=new FurnaceGUIRenderDX9Private; + SDL_GetWindowSize(win,&outW,&outH); + memset(&priv->present,0,sizeof(D3DPRESENT_PARAMETERS)); priv->present.Windowed=TRUE; priv->present.SwapEffect=D3DSWAPEFFECT_DISCARD; + priv->present.BackBufferWidth=outW; + priv->present.BackBufferHeight=outH; + priv->present.BackBufferCount=1; priv->present.BackBufferFormat=D3DFMT_UNKNOWN; - priv->present.EnableAutoDepthStencil=TRUE; - priv->present.AutoDepthStencilFormat=D3DFMT_D16; + //priv->present.EnableAutoDepthStencil=TRUE; + //priv->present.AutoDepthStencilFormat=D3DFMT_D16; if (swapInt>0) { priv->present.PresentationInterval=D3DPRESENT_INTERVAL_ONE; } else { @@ -417,8 +422,6 @@ bool FurnaceGUIRenderDX9::init(SDL_Window* win, int swapInt) { logE("could not create wipe buffer! %.8x",result); } - SDL_GetWindowSize(win,&outW,&outH); - return true; }