debug_window: Use correct format specifier for double value
Specifier 'LF' is 'long double'.
This commit is contained in:
parent
fe30941c9b
commit
6b31ddfb42
|
@ -715,7 +715,7 @@ bool DebugWindow::DrawRegisterTextBox(int id, double* value) {
|
||||||
} else {
|
} else {
|
||||||
input_flags |=
|
input_flags |=
|
||||||
ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_AutoSelectAll;
|
ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_AutoSelectAll;
|
||||||
std::snprintf(buffer, xe::countof(buffer), "%.8LF", *value);
|
std::snprintf(buffer, xe::countof(buffer), "%.8F", *value);
|
||||||
}
|
}
|
||||||
char label[16] = {0};
|
char label[16] = {0};
|
||||||
std::snprintf(label, xe::countof(label), "##dregister%d", id);
|
std::snprintf(label, xe::countof(label), "##dregister%d", id);
|
||||||
|
|
Loading…
Reference in New Issue