@ -203,7 +203,7 @@ const char *const PanBtnStr[8] = {
"" // Player attack
};
/** Maps from attribute_id to the rectangle on screen used for attribute increment buttons. */
RECT32 ChrBtnsRect[4] = {
Rectangle ChrBtnsRect[4] = {
{ 137, 138, 41, 22 },
{ 137, 166, 41, 22 },
{ 137, 195, 41, 22 },
@ -134,6 +134,6 @@ void control_reset_talk();
bool control_talk_last_key(int vkey);
bool control_presskeys(int vkey);
extern RECT32 ChrBtnsRect[4];
extern Rectangle ChrBtnsRect[4];
} // namespace devilution
@ -224,7 +224,7 @@ struct Size {
}
struct RECT32 {
struct Rectangle {
int x;
int y;
int w;
@ -78,7 +78,7 @@ void FocusOnCharInfo()
if (stat == -1)
return;
const RECT32 &rect = ChrBtnsRect[stat];
const Rectangle &rect = ChrBtnsRect[stat];
SetCursorPos(rect.x + (rect.w / 2), rect.y + (rect.h / 2));