Skip to content

Commit

Permalink
Merge pull request #192 from naivisoftware/shylight_sequencer_update
Browse files Browse the repository at this point in the history
Shylight sequencer update
  • Loading branch information
cklosters committed Jun 15, 2022
2 parents 315d78d + cfdae0c commit fe7cec6
Show file tree
Hide file tree
Showing 17 changed files with 431 additions and 281 deletions.
3 changes: 2 additions & 1 deletion demos/sequencer/data/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@
"mID": "SequenceEditorGUI",
"Sequence Editor": "SequenceEditor",
"Render Window": "SequencerWindow",
"Draw Full Window": true
"Draw Full Window": true,
"Hide Marker Labels": false
},
{
"Type": "nap::SequencePlayer",
Expand Down
4 changes: 3 additions & 1 deletion modules/naprender/src/renderservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1480,8 +1480,10 @@ namespace nap
{
auto it = mDisplays.emplace_back(Display(i));
nap::Logger::info(it.toString());
if (!errorState.check(it.isValid(), "Display %d: unable to extract required information", i))
if (!errorState.check(it.isValid(), "Display: %d, unable to extract required information"))
{
return false;
}
}

// Initialize shader compiler
Expand Down
6 changes: 6 additions & 0 deletions modules/naprender/src/renderwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,12 @@ namespace nap
}


void RenderWindow::setTitle(std::string newTitle)
{
SDL::setWindowTitle(mSDLWindow, newTitle);
}


void RenderWindow::setFullscreen(bool value)
{
SDL::setFullscreen(mSDLWindow, value);
Expand Down
5 changes: 5 additions & 0 deletions modules/naprender/src/renderwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ namespace nap
*/
const std::string& getTitle() const { return mTitle; }

/**
* Sets the window title
*/
void setTitle(std::string newTitle);

/**
* @return if the window is resizable
*/
Expand Down
Loading

0 comments on commit fe7cec6

Please sign in to comment.