Skip to content

Commit

Permalink
Only expose if module has gui_post_expose
Browse files Browse the repository at this point in the history
Avoid calling _module_gui_post_expose() if the module in focus doesn't have that.
Improve readability of '-d expose' logs.
  • Loading branch information
jenshannoschwalm authored and TurboGit committed Jan 20, 2025
1 parent e780d24 commit 0d120dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/views/darkroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ void expose(dt_view_t *self,
}

// gui active module
if(dt_dev_modulegroups_test_activated(darktable.develop))
if(dmod->gui_post_expose && dt_dev_modulegroups_test_activated(darktable.develop))
{
dt_print_pipe(DT_DEBUG_EXPOSE,
"expose module",
Expand Down
4 changes: 2 additions & 2 deletions src/views/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ void dt_view_paint_surface(cairo_t *cr,
cairo_paint(cr);

dt_print_pipe(DT_DEBUG_EXPOSE,
"dt_view_paint_surface",
" painting",
dev->preview_pipe, NULL, DT_DEVICE_NONE, NULL, NULL,
"size %4lux%-4lu processed %4.0fx%-4.0f "
"buf %4dx%-4d scale=%.3f "
Expand All @@ -1782,7 +1782,7 @@ void dt_view_paint_surface(cairo_t *cr,
|| dev->preview_pipe->output_imgid != dev->image_storage.id)
{
dt_print_pipe(DT_DEBUG_EXPOSE,
"dt_view_paint_surface",
" painting",
port->pipe, NULL, DT_DEVICE_NONE, NULL, NULL,
"size %4lux%-4lu processed %4dx%-4d "
"buf %4dx%-4d scale=%.3f "
Expand Down

0 comments on commit 0d120dd

Please sign in to comment.