mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
The same rect was hardcoded in three different places. Now it is only in getEditRect and the other places use getEditRect. There were actually differences between the rect width, but I put that down to a bug in getEditRect. I see no reason to define the right position of the rect as w - 2 - right_padding - left_padding. Substracting the left padding would make sense if we were specifying the rect width, but the Common:Rect constructor takes the rect right location and not the width. There might have been a confusion on that point by the developer who wrote that code years ago. Also has the bottom right point is excluded, we should only remove 1 and not 2. This width that was smaller than it should be might have been the reason why 6 additional pixels were arbitrarily added to the rect passed to setTextDrawableArea later on. There were actually