Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoherbelin committed Feb 25, 2024
2 parents 3eecb41 + 1ba8ff0 commit 5719c6c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ if(UNIX)
else()
add_definitions(-DLINUX)
# add_definitions(-DUSE_GST_OPENGL_SYNC_HANDLER)
# add_definitions(-DUSE_GL_BUFFER_SUBDATA)

# CPACK
set(CPACK_SYSTEM_NAME "${CMAKE_HOST_SYSTEM_NAME}")
Expand Down
24 changes: 14 additions & 10 deletions src/Mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,21 @@ void Mixer::update()
}
}

// update views
mixing_.update(dt_);
geometry_.update(dt_);
layer_.update(dt_);
appearance_.update(dt_);
transition_.update(dt_);
displays_.update(dt_);

// deep update was performed
if (View::need_deep_update_ > 0)
// update all views for deep update
if (View::need_deep_update_ > 0) {
mixing_.update(dt_);
geometry_.update(dt_);
layer_.update(dt_);
appearance_.update(dt_);
transition_.update(dt_);
displays_.update(dt_);

// deep update was performed
--View::need_deep_update_;
}
// update only current view otherwise
else
current_view_->update(dt_);
}

void Mixer::draw()
Expand Down
6 changes: 3 additions & 3 deletions src/RenderingManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -955,9 +955,9 @@ bool RenderingWindow::init(int index, GLFWwindow *share)
glfwWindowHint(GLFW_AUTO_ICONIFY, GLFW_FALSE);

// restore decoration state
if (master_ != NULL && !winset.decorated) {
glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
glfwWindowHint(GLFW_DECORATED, GLFW_FALSE);
if (master_ != NULL) {
glfwWindowHint(GLFW_RESIZABLE, winset.decorated ? GLFW_TRUE : GLFW_FALSE);
glfwWindowHint(GLFW_DECORATED, winset.decorated ? GLFW_TRUE : GLFW_FALSE);
}

// create the window
Expand Down
5 changes: 3 additions & 2 deletions src/SourceCallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,12 @@ void SetDepth::update(Source *s, float dt)
if ( progress > duration_ ) {
// apply depth to target
s->group(View::LAYER)->translation_.z = target_;
// ensure reordering of view
++View::need_deep_update_;
// done
status_ = FINISHED;
}

// ensure reordering of sources in view
++View::need_deep_update_;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/UserInterfaceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ void UserInterface::showMenuWindows()
ImGui::Separator();

// Enter / exit Fullscreen
if (Rendering::manager().mainWindow().isFullscreen()){
if (Settings::application.windows[0].fullscreen){
if (ImGui::MenuItem( ICON_FA_COMPRESS_ALT " Exit Fullscreen", SHORTCUT_FULLSCREEN ))
Rendering::manager().mainWindow().toggleFullscreen();
}
Expand Down

0 comments on commit 5719c6c

Please sign in to comment.