(D3D) Don't use std::string for title

This commit is contained in:
twinaphex 2015-04-10 07:41:37 +02:00
parent b1258bd179
commit d9f828e047

View File

@ -507,10 +507,9 @@ static bool d3d_construct(d3d_video_t *d3d,
} }
video_monitor_get_fps(buffer, sizeof(buffer), NULL, 0); video_monitor_get_fps(buffer, sizeof(buffer), NULL, 0);
std::string title = buffer; snprintf(buffer, sizeof(buffer), "%s || Direct3D", buffer);
title += " || Direct3D";
d3d->hWnd = CreateWindowEx(0, "RetroArch", title.c_str(), d3d->hWnd = CreateWindowEx(0, "RetroArch", buffer,
info->fullscreen ? info->fullscreen ?
(WS_EX_TOPMOST | WS_POPUP) : WS_OVERLAPPEDWINDOW, (WS_EX_TOPMOST | WS_POPUP) : WS_OVERLAPPEDWINDOW,
info->fullscreen ? mon_rect.left : CW_USEDEFAULT, info->fullscreen ? mon_rect.left : CW_USEDEFAULT,