File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5555 <ItemDefinitionGroup Condition =" '$(Configuration)|$(Platform)'=='Release|Win32'" >
5656 <ClCompile >
5757 <RuntimeLibrary >MultiThreaded</RuntimeLibrary >
58- <PreprocessorDefinitions >NDEBUG;IMGUI_DISABLE_METRICS_WINDOW;%(PreprocessorDefinitions)</PreprocessorDefinitions >
58+ <PreprocessorDefinitions >NDEBUG;IMGUI_DISABLE_DEMO_WINDOWS; IMGUI_DISABLE_METRICS_WINDOW;%(PreprocessorDefinitions)</PreprocessorDefinitions >
5959 <ConformanceMode >true</ConformanceMode >
6060 <BufferSecurityCheck >false</BufferSecurityCheck >
6161 <ExceptionHandling >false</ExceptionHandling >
6666 <ItemDefinitionGroup Condition =" '$(Configuration)|$(Platform)'=='Release|x64'" >
6767 <ClCompile >
6868 <RuntimeLibrary >MultiThreaded</RuntimeLibrary >
69- <PreprocessorDefinitions >NDEBUG;IMGUI_DISABLE_METRICS_WINDOW;%(PreprocessorDefinitions)</PreprocessorDefinitions >
69+ <PreprocessorDefinitions >NDEBUG;IMGUI_DISABLE_DEMO_WINDOWS; IMGUI_DISABLE_METRICS_WINDOW;%(PreprocessorDefinitions)</PreprocessorDefinitions >
7070 <ConformanceMode >true</ConformanceMode >
7171 <BufferSecurityCheck >false</BufferSecurityCheck >
7272 <ExceptionHandling >false</ExceptionHandling >
Original file line number Diff line number Diff line change @@ -1830,6 +1830,7 @@ void reshade::runtime::draw_gui_statistics()
18301830 }
18311831
18321832 const auto button_size = ImGui::GetFrameHeight ();
1833+ const auto button_spacing = ImGui::GetStyle ().ItemInnerSpacing .x ;
18331834 const bool supports_saving = (
18341835 tex.format == reshadefx::texture_format::r8 ||
18351836 tex.format == reshadefx::texture_format::rg8 ||
@@ -1838,11 +1839,11 @@ void reshade::runtime::draw_gui_statistics()
18381839
18391840 ImGui::PushStyleVar (ImGuiStyleVar_ButtonTextAlign, ImVec2 (0 .0f , 0 .5f ));
18401841 if (const std::string label = " Referenced by " + std::to_string (num_referenced_passes) + " pass(es) in " + std::to_string (tex.shared .size ()) + " effect(s) ..." ;
1841- ImGui::ButtonEx (label.c_str (), ImVec2 (single_image_width - (supports_saving ? ImGui::GetStyle (). ItemSpacing . x + button_size : 0 ), 0 )))
1842+ ImGui::ButtonEx (label.c_str (), ImVec2 (single_image_width - (supports_saving ? button_spacing + button_size : 0 ), 0 )))
18421843 ImGui::OpenPopup (" ##references" );
18431844 if (supports_saving)
18441845 {
1845- ImGui::SameLine ();
1846+ ImGui::SameLine (0 , button_spacing );
18461847 if (ImGui::Button (ICON_FK_FLOPPY, ImVec2 (button_size, 0 )))
18471848 save_texture (tex);
18481849 if (ImGui::IsItemHovered ())
You can’t perform that action at this time.
0 commit comments