mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
Make curD3D a static variable
This commit is contained in:
parent
e5f327edda
commit
5a60055aa9
@ -59,7 +59,7 @@ static bool g_quit;
|
|||||||
static HWND g_hwnd;
|
static HWND g_hwnd;
|
||||||
|
|
||||||
extern void *dinput_wgl;
|
extern void *dinput_wgl;
|
||||||
extern void *curD3D;
|
static void *curD3D = NULL;
|
||||||
extern void *dinput;
|
extern void *dinput;
|
||||||
|
|
||||||
/* Power Request APIs */
|
/* Power Request APIs */
|
||||||
|
@ -45,14 +45,13 @@
|
|||||||
static bool widescreen_mode = false;
|
static bool widescreen_mode = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void *curD3D = NULL;
|
|
||||||
void *dinput;
|
void *dinput;
|
||||||
|
|
||||||
static bool gfx_ctx_d3d_set_resize(void *data, unsigned new_width, unsigned new_height)
|
static bool gfx_ctx_d3d_set_resize(void *data, unsigned new_width, unsigned new_height)
|
||||||
{
|
{
|
||||||
d3d_video_t *d3d = (d3d_video_t*)curD3D;
|
d3d_video_t *d3d = (d3d_video_t*)video_driver_get_ptr(false);
|
||||||
|
|
||||||
if (!d3d->dev)
|
if (!d3d || !d3d->dev)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* No changes? */
|
/* No changes? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user