Commit 362c1de2 authored by PoroCYon's avatar PoroCYon Committed by Gargaj
Browse files

fix @rgiot's issue as described in #49 (#51)

parent 9cbdd927
......@@ -255,6 +255,11 @@ int main(int argc, char *argv[])
}
Capture::LoadSettings( options );
}
else if (!editorOptions.sFontPath.size())
{
printf("Couldn't find any of the default fonts. Please specify one in config.json\n");
return -1;
}
if (!Capture::Open(settings))
{
printf("Initializing capture system failed!\n");
......@@ -322,8 +327,6 @@ int main(int argc, char *argv[])
bool bTexPreviewVisible = true;
assert( editorOptions.sFontPath.size() > 0 );
editorOptions.rect = Scintilla::PRectangle( nMargin, nMargin, settings.nWidth - nMargin - nTexPreviewWidth - nMargin, settings.nHeight - nMargin * 2 - nDebugOutputHeight );
ShaderEditor mShaderEditor( surface );
mShaderEditor.Initialise( editorOptions );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment