test build 4

This commit is contained in:
tildearrow 2024-05-14 16:09:24 -05:00
parent a34f768e5a
commit 11157825b2
2 changed files with 9 additions and 6 deletions

View file

@ -54,8 +54,8 @@ class DivWorkPool;
#define DIV_UNSTABLE #define DIV_UNSTABLE
#define DIV_VERSION "DX9 Test III" #define DIV_VERSION "DX9 Test IV"
#define DIV_ENGINE_VERSION 204 #define DIV_ENGINE_VERSION 205
// for imports // for imports
#define DIV_VERSION_MOD 0xff01 #define DIV_VERSION_MOD 0xff01
#define DIV_VERSION_FC 0xff02 #define DIV_VERSION_FC 0xff02

View file

@ -370,12 +370,17 @@ bool FurnaceGUIRenderDX9::init(SDL_Window* win, int swapInt) {
priv=new FurnaceGUIRenderDX9Private; priv=new FurnaceGUIRenderDX9Private;
SDL_GetWindowSize(win,&outW,&outH);
memset(&priv->present,0,sizeof(D3DPRESENT_PARAMETERS)); memset(&priv->present,0,sizeof(D3DPRESENT_PARAMETERS));
priv->present.Windowed=TRUE; priv->present.Windowed=TRUE;
priv->present.SwapEffect=D3DSWAPEFFECT_DISCARD; priv->present.SwapEffect=D3DSWAPEFFECT_DISCARD;
priv->present.BackBufferWidth=outW;
priv->present.BackBufferHeight=outH;
priv->present.BackBufferCount=1;
priv->present.BackBufferFormat=D3DFMT_UNKNOWN; priv->present.BackBufferFormat=D3DFMT_UNKNOWN;
priv->present.EnableAutoDepthStencil=TRUE; //priv->present.EnableAutoDepthStencil=TRUE;
priv->present.AutoDepthStencilFormat=D3DFMT_D16; //priv->present.AutoDepthStencilFormat=D3DFMT_D16;
if (swapInt>0) { if (swapInt>0) {
priv->present.PresentationInterval=D3DPRESENT_INTERVAL_ONE; priv->present.PresentationInterval=D3DPRESENT_INTERVAL_ONE;
} else { } else {
@ -417,8 +422,6 @@ bool FurnaceGUIRenderDX9::init(SDL_Window* win, int swapInt) {
logE("could not create wipe buffer! %.8x",result); logE("could not create wipe buffer! %.8x",result);
} }
SDL_GetWindowSize(win,&outW,&outH);
return true; return true;
} }