summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/gwidthtracker.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/glibext/gwidthtracker.c b/src/glibext/gwidthtracker.c
index e116a85..50b99eb 100644
--- a/src/glibext/gwidthtracker.c
+++ b/src/glibext/gwidthtracker.c
@@ -1000,12 +1000,10 @@ void g_width_tracker_build_initial_cache(GWidthTracker *tracker, wgroup_id_t gid
/* Lancement des traitements */
- runs_count = get_max_online_threads();
+ run_size = compute_run_size(tracker->count, &runs_count);
updates = (GWidthUpdate **)calloc(runs_count, sizeof(GWidthUpdate *));
- run_size = tracker->count / runs_count;
-
queue = get_work_queue();
id = gtk_status_stack_add_activity(status, _("Computing width of all lines for rendering"), tracker->count);