修复mixer_track高度不一致问题
This commit is contained in:
parent
f3e3d44ce8
commit
fa0b169dde
@ -84,6 +84,7 @@ void update_mixer_track_peak(float delta_time, mixer_track* track) {
|
||||
|
||||
void draw_mixer_track(uint32_t delta_sample_count, mixer_track* track, int32_t index) {
|
||||
float delta_time = ImGui::GetIO().DeltaTime;
|
||||
ImGuiWindow* window = ImGui::GetCurrentWindow();
|
||||
|
||||
std::string track_label = track->get_name();
|
||||
std::string child_id = "MixerTrack" + std::to_string(index);
|
||||
@ -91,6 +92,7 @@ void draw_mixer_track(uint32_t delta_sample_count, mixer_track* track, int32_t i
|
||||
std::string volume_bar_id = "VolumeBar" + std::to_string(index);
|
||||
|
||||
ImGui::BeginGroup();
|
||||
window->DC.CurrLineTextBaseOffset = 0;
|
||||
ImGui::Text(track_label.c_str());
|
||||
|
||||
float widget_height = ImGui::GetContentRegionAvail().y;
|
||||
|
Loading…
x
Reference in New Issue
Block a user