tdm_private_output *private_output = private_layer->private_output;
tdm_private_display *private_display = private_output->private_display;
- TDM_RETURN_VAL_IF_FAIL(!(private_display->commit_per_vblank > 0), 1);
+ TDM_RETURN_VAL_IF_FAIL(private_display->commit_per_vblank > 0, 1);
/* There is a previous commit request which is not done and displayed on screen yet.
* We can't commit at this time.
return 0;
}
- TDM_INFO("layer(%p) commit: possible", private_layer);
+ if (tdm_debug_module & TDM_DEBUG_COMMIT)
+ TDM_INFO("layer(%p) commit: possible", private_layer);
return 1;
}