View Single Post
Old April 3rd, 2008   #11 (permalink)
NHervé
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 518
1) It's on Windows, here's my code :
Code:
PROTO_SINT SetInfoFunc(LPSETPLUGININFO lpInfo){
	if(lpInfo==NULL)return 0;

	if(PLUGINISENABLE(lpInfo)){
		if(lpInfo->lParam)memcpy(&Nitro3D.pluginStruct, (void*)lpInfo->lParam, sizeof(VIDEO3DPARAM));
		if(!(Nitro3D.pluginStruct.lpWnd))return 0;
		Sleep(0);
		Nitro3D.dc=Nitro3D.pluginStruct.lpWnd->DC();
		Sleep(0);
		Nitro3D.glInit();
	}
	return 1;
}
You can see that I call Sleep(0) before and after my call to IWnd->DC(). If I remove one of the two Sleep(0) calls, the emu crashes. Why ? Please help me, or I'll think you don't want the plugins you didn't create.

2)It's me who is buggy, the touchscreen setting was set to Far Corners instead of Normal. The touchscreen now works perfect.
__________________
No pity for n00bs here !
NHervé is offline   Reply With Quote