Skip to content

Commit

Permalink
Window: Force an update when window draw callback changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 24, 2012
1 parent 60e2a00 commit c27dd89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/engine/portable/src/window.cpp
Expand Up @@ -1062,6 +1062,7 @@ void Window_SetDrawFunc(Window* win, void (*drawFunc)(void))

win->drawFunc = drawFunc;
win->widget->canvas().setDrawFunc(drawFunc? drawCanvasWithCallback : 0);
win->widget->update();
}

void Window_Draw(Window* win)
Expand Down

0 comments on commit c27dd89

Please sign in to comment.