Code: Select all
const float caret_width = caret_imagery.getBoundingRect(*d_window, text_area).getWidth();
but the result is no expected, it seems inside function getBoundingRect,
Code: Select all
Rect bounds(0,0,0,0)
causes the wrong calculate, the left and top member of bounds will be used to as operand of ceguimin, should this two be initialized as a larger number?