present: Target-msc calculation code cleanup

Merged Roman Gilg requested to merge romangg/xserver:cleanupTargetMscCalc into master

For better readability this patch improves the code style. No functional changes should be the result. In detail:

  • Rename functions and variable to give them more meaning and keep them consistent.
  • Unfold and extensively annotate the target-msc adjustment function, to make it easier to understand what's happening and why.
  • Hand over scalar values as arguments instead of pointers when possible.
  • Change arguments and return values of functions to improve inner and outer semantic of the function.

Signed-off-by: Roman Gilg subdiff@gmail.com

Merge request reports