mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 21:35:25 +00:00
use void pointer
This commit is contained in:
parent
3b8932b302
commit
b4b3574665
@ -217,7 +217,7 @@ static LRESULT CALLBACK WndProcCommon(bool *quit, HWND hwnd, UINT message,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern bool d3d_restore(d3d_video_t *data);
|
extern bool d3d_restore(void *data);
|
||||||
|
|
||||||
LRESULT CALLBACK WndProcD3D(HWND hwnd, UINT message,
|
LRESULT CALLBACK WndProcD3D(HWND hwnd, UINT message,
|
||||||
WPARAM wparam, LPARAM lparam)
|
WPARAM wparam, LPARAM lparam)
|
||||||
|
@ -422,10 +422,13 @@ static bool d3d_initialize(d3d_video_t *d3d, const video_info_t *info)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool d3d_restore(void *data)
|
||||||
|
|
||||||
bool d3d_restore(d3d_video_t *d3d)
|
|
||||||
{
|
{
|
||||||
|
d3d_video_t *d3d = (d3d_video_t*)data;
|
||||||
|
|
||||||
|
if (!d3d)
|
||||||
|
return false;
|
||||||
|
|
||||||
d3d_deinitialize(d3d);
|
d3d_deinitialize(d3d);
|
||||||
d3d->needs_restore = !d3d_initialize(d3d, &d3d->video_info);
|
d3d->needs_restore = !d3d_initialize(d3d, &d3d->video_info);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user