mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix incorrect window title
This commit is contained in:
parent
7e526eae81
commit
77012aee2e
@ -70,11 +70,12 @@ create_toplevel_window(HINSTANCE application) {
|
|||||||
|
|
||||||
DWORD window_style = WS_POPUP | WS_SYSMENU | WS_ICONIC;
|
DWORD window_style = WS_POPUP | WS_SYSMENU | WS_ICONIC;
|
||||||
|
|
||||||
char window_name[128];
|
ostringstream strm;
|
||||||
sprintf(window_name, "PStats %d", pstats_port);
|
strm << "PStats " << pstats_port;
|
||||||
|
string window_name = strm.str();
|
||||||
|
|
||||||
HWND toplevel_window =
|
HWND toplevel_window =
|
||||||
CreateWindow(toplevel_class_name, window_name, window_style,
|
CreateWindow(toplevel_class_name, window_name.c_str(), window_style,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
NULL, NULL, application, 0);
|
NULL, NULL, application, 0);
|
||||||
if (!toplevel_window) {
|
if (!toplevel_window) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user