Fix uninitialized trace params while initializing tracer initially
This commit is contained in:
parent
211d2cc8fa
commit
b19a7b634a
1 changed files with 6 additions and 0 deletions
|
@ -692,7 +692,13 @@ void *display_thread(void *arg)
|
|||
OLTraceParams tparams;
|
||||
OLTraceResult result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
ctx->settings_changed = 1;
|
||||
|
||||
tparams.sigma = ctx->settings.blur / 100.0;
|
||||
if (ctx->settings.canny)
|
||||
tparams.mode = OL_TRACE_CANNY;
|
||||
else
|
||||
tparams.mode = OL_TRACE_THRESHOLD;
|
||||
tparams.width = ctx->width;
|
||||
tparams.height = ctx->height;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue