CTextBox: Fix center / right text display

- The x position of the text could assume negative values,
  when the text length was greater than the specified range.
Merge remote-tracking branch 'cool-cst-next/cst-next'