App::I static singleton to pointer
This commit is contained in:
@@ -34,7 +34,7 @@ void NodeDialogResize::init_controls()
|
||||
text = find<NodeText>("current-res");
|
||||
resolution = Canvas::I->m_width;
|
||||
static char txt[128];
|
||||
sprintf(txt, "Current: %s", App::I.res_to_string(resolution).c_str());
|
||||
sprintf(txt, "Current: %s", App::I->res_to_string(resolution).c_str());
|
||||
text->set_text(txt);
|
||||
btn_cancel->on_click = [this](Node*) {
|
||||
destroy();
|
||||
@@ -50,5 +50,5 @@ void NodeDialogResize::loaded()
|
||||
|
||||
int NodeDialogResize::get_resolution()
|
||||
{
|
||||
return combo ? App::I.res_from_index(combo->m_current_index) : 512;
|
||||
return combo ? App::I->res_from_index(combo->m_current_index) : 512;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user