fix shaders for the transform tool

This commit is contained in:
2018-11-25 16:16:01 +01:00
parent a124d19bdc
commit 0d0cd3db7f
8 changed files with 100 additions and 98 deletions

View File

@@ -34,7 +34,7 @@ void NodeDialogResize::init_controls()
text = find<NodeText>("current-res");
resolution = ui::Canvas::I->m_width;
static char txt[128];
sprintf(txt, "Current: %s", App::I.res_to_string(resolution));
sprintf(txt, "Current: %s", App::I.res_to_string(resolution).c_str());
text->set_text(txt);
btn_cancel->on_click = [this](Node*) {
destroy();