// some PAD or SPU plugins would not work anymore)\r
////////////////////////////////////////////////////////////////////////\r
\r
-long CALLBACK GPUopen(int hwndGPU)\r
+long CALLBACK GPUopen(unsigned long *disp, char *cap, char *cfg)\r
{\r
iResX=800;iResY=480;\r
iColDepth=8;\r
#if 0\r
long CALLBACK GPUinit();\r
long CALLBACK GPUshutdown();\r
-long CALLBACK GPUopen(int hwndGPU);\r
+long CALLBACK GPUopen(unsigned long *disp, char *cap, char *cfg);\r
long CALLBACK GPUclose();\r
unsigned long CALLBACK GPUreadData(void);\r
void CALLBACK GPUreadDataMem(unsigned long * pMem, int iSize);\r
static struct rearmed_cbs *cbs;
-long GPUopen(void **dpy)
+long GPUopen(unsigned long *disp, char *cap, char *cfg)
{
int ret;
if (is_opened && cbs->gles_display != NULL && cbs->gles_surface != NULL) {
// HACK..
GPUclose();
- GPUopen(NULL);
+ GPUopen(NULL, NULL, NULL);
}
set_vram(gpu.vram);
void GPUwriteStatus(uint32_t data);
long GPUfreeze(uint32_t type, struct GPUFreeze *freeze);
void GPUupdateLace(void);
-long GPUopen(void **dpy);
+long GPUopen(unsigned long *disp, char *cap, char *cfg);
long GPUclose(void);
void GPUvBlank(int is_vblank, int lcf);
void GPUrearmedCallbacks(const struct rearmed_cbs *cbs_);
cbs->pl_vout_flip(NULL, 1024, !!(gpu.status & PSX_GPU_STATUS_RGB24), 0, 0, w, h, 0);
}
-long GPUopen(void **unused)
+long GPUopen(unsigned long *disp, char *cap, char *cfg)
{
gpu.frameskip.active = 0;
gpu.frameskip.frame_ready = 1;
{
}
-long GPUopen(void **dpy)
+long GPUopen(unsigned long *disp, char *cap, char *cfg)
{
- *dpy = x11_display;
+ *disp = (long)x11_display;
return 0;
}