mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Backends: amends to 1db1066 + merge minor bits from docking incl SetActiveIdUsingNavAndKeys().
No need to clear fields before deletion. DX12: renamed to match docking branch.
This commit is contained in:
		| @@ -6974,12 +6974,12 @@ static void ShowExampleAppConstrainedResize(bool* p_open) | ||||
| // + a context-menu to choose which corner of the screen to use. | ||||
| static void ShowExampleAppSimpleOverlay(bool* p_open) | ||||
| { | ||||
|     const float PAD = 10.0f; | ||||
|     static int corner = 0; | ||||
|     ImGuiIO& io = ImGui::GetIO(); | ||||
|     ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav; | ||||
|     if (corner != -1) | ||||
|     { | ||||
|         const float PAD = 10.0f; | ||||
|         const ImGuiViewport* viewport = ImGui::GetMainViewport(); | ||||
|         ImVec2 work_pos = viewport->WorkPos; // Use work area to avoid menu-bar/task-bar, if any! | ||||
|         ImVec2 work_size = viewport->WorkSize; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user