Skip to content

Commit

Permalink
Client|Debug: Investigating regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 95437f7 commit 308182c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doomsday/apps/client/src/busyrunner.cpp
Expand Up @@ -236,12 +236,12 @@ BusyRunner::Result BusyRunner::runTask(BusyTask *task)
* event loop used during busy mode. Toggling the swap interval off and
* back on appears to be a valid workaround.
*/
Loop::timer(0.1, [] () {
Loop::timer(0.1, []() {
ClientWindow::main().glActivate();
GLInfo::setSwapInterval(0);
ClientWindow::main().glDone();
});
Loop::timer(0.5, [] () {
Loop::timer(0.5, []() {
ClientWindow::main().glActivate();
if (Config::get().getb("window.main.vsync")) {
GLInfo::setSwapInterval(1);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/ui/clientwindow.cpp
Expand Up @@ -562,7 +562,7 @@ DE_PIMPL(ClientWindow)
{
// Mouse_Trap(state == MouseEventSource::Trapped);

DE_ASSERT_FAIL("Change mouse state with SDL?");
// DE_ASSERT_FAIL("Change mouse state with SDL?");
}

/**
Expand Down
3 changes: 3 additions & 0 deletions doomsday/apps/plugins/common/src/menu/widgets/widget.cpp
Expand Up @@ -19,6 +19,7 @@
*/

#include <de/Map>
#include <de/NoneValue>
#include "common.h"
#include "menu/widgets/widget.h"
#include "menu/page.h"
Expand Down Expand Up @@ -289,6 +290,7 @@ Widget &Widget::setUserValue(const Value &newValue)

const Value &Widget::userValue() const
{
if (!d->userValue) d->userValue.reset(new NoneValue);
return *d->userValue;
}

Expand All @@ -300,6 +302,7 @@ Widget &Widget::setUserValue2(const Value &newValue)

const Value &Widget::userValue2() const
{
if (!d->userValue2) d->userValue2.reset(new NoneValue);
return *d->userValue2;
}

Expand Down

0 comments on commit 308182c

Please sign in to comment.