mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-25 20:25:42 +00:00
(D3D) More
This commit is contained in:
parent
060a255561
commit
66727bba2e
@ -349,7 +349,7 @@ static void d3d_set_viewport(void *data,
|
||||
|
||||
d3d->final_viewport = viewport;
|
||||
|
||||
if (d3d->renderchain_driver && d3d->renderchain_data)
|
||||
if (d3d && d3d->renderchain_driver && d3d->renderchain_data)
|
||||
{
|
||||
if (d3d->renderchain_driver->set_font_rect)
|
||||
d3d->renderchain_driver->set_font_rect(d3d, NULL);
|
||||
@ -650,7 +650,7 @@ static bool d3d_construct(d3d_video_t *d3d,
|
||||
style = WS_POPUP | WS_VISIBLE;
|
||||
|
||||
if (!set_fullscreen(win_width, win_height, refresh, current_mon.szDevice))
|
||||
goto error;
|
||||
{}
|
||||
|
||||
/* Display settings might have changed, get new coordinates. */
|
||||
GetMonitorInfo(hm_to_use, (MONITORINFO*)¤t_mon);
|
||||
@ -668,8 +668,7 @@ static bool d3d_construct(d3d_video_t *d3d,
|
||||
}
|
||||
|
||||
d3d->hWnd = CreateWindowEx(0, "RetroArch", "RetroArch",
|
||||
info->fullscreen ?
|
||||
(WS_EX_TOPMOST | WS_POPUP) : WS_OVERLAPPEDWINDOW,
|
||||
style,
|
||||
info->fullscreen ? mon_rect.left : CW_USEDEFAULT,
|
||||
info->fullscreen ? mon_rect.top : CW_USEDEFAULT,
|
||||
win_width, win_height,
|
||||
|
Loading…
Reference in New Issue
Block a user