diff --git a/Source/control.cpp b/Source/control.cpp index ca7fcd673..2f01b1350 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -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 }, diff --git a/Source/control.h b/Source/control.h index 59ab36058..b6620e3bf 100644 --- a/Source/control.h +++ b/Source/control.h @@ -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 diff --git a/Source/engine.h b/Source/engine.h index 087528f7a..1876129a2 100644 --- a/Source/engine.h +++ b/Source/engine.h @@ -224,7 +224,7 @@ struct Size { } }; -struct RECT32 { +struct Rectangle { int x; int y; int w; diff --git a/Source/miniwin/misc_msg.cpp b/Source/miniwin/misc_msg.cpp index b76516539..9889eed4c 100644 --- a/Source/miniwin/misc_msg.cpp +++ b/Source/miniwin/misc_msg.cpp @@ -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)); }