GUI: set debug window size constraints
This commit is contained in:
parent
88680f594c
commit
dc46c67d9f
|
@ -4026,6 +4026,7 @@ void FurnaceGUI::drawDebug() {
|
||||||
static int bpTick;
|
static int bpTick;
|
||||||
static bool bpOn;
|
static bool bpOn;
|
||||||
if (!debugOpen) return;
|
if (!debugOpen) return;
|
||||||
|
ImGui::SetNextWindowSizeConstraints(ImVec2(400.0f*dpiScale,200.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale));
|
||||||
if (ImGui::Begin("Debug",&debugOpen,ImGuiWindowFlags_NoDocking)) {
|
if (ImGui::Begin("Debug",&debugOpen,ImGuiWindowFlags_NoDocking)) {
|
||||||
ImGui::Text("NOTE: use with caution.");
|
ImGui::Text("NOTE: use with caution.");
|
||||||
if (ImGui::TreeNode("Debug Controls")) {
|
if (ImGui::TreeNode("Debug Controls")) {
|
||||||
|
|
Loading…
Reference in New Issue