Original Post
Why is it that this code runs the exe using full screen display.... But this code doesn't? Other than these little quirks I think im getting the hang of Win32/DirectX. *fixed my typo... still same prob* [Edited by - SL33pY_Kr3W on February 19, 2005 6:31:03 PM]
int GameInit(void *parms,int num_parms)
{
//intiate stuff for game
if(FAILED(DirectDrawCreateEx(NULL,(void**)&lpdd7,IID_IDirectDraw7,NULL)))
return(0);
if(FAILED(lpdd7->SetCooperativeLevel(GLOB_HWND1,DDSCL_NORMAL)))
return(0);
lpdd7->SetDisplayMode(800,600,8,0,0);
//return success
return(1);
}
int GameInit(void *parms,int num_parms)
{
//intiate stuff for game
if(FAILED(DirectDrawCreateEx(NULL,(void**)&lpdd7,IID_IDirectDraw7,NULL)))
return(0);
if(FAILED(lpdd7->SetCooperativeLevel(GLOB_HWND1,DDSCL_FULLSCREEN|DDSCL_ALLOWMODEX|DDSCL_EXCLUSIVE|DDSCL_ALLOWREBOOT)))
return(0);
lpdd7->SetDisplayMode(800,600,8,0,0);
//return success
return(1);
}