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.