Browse Source

🚚 Rename 'RECT32' to 'Rectangle' to match naming style of other core structs

pull/2203/head
Juliano Leal Goncalves 5 years ago committed by Anders Jenbo
parent
commit
ff147f9280
  1. 2
      Source/control.cpp
  2. 2
      Source/control.h
  3. 2
      Source/engine.h
  4. 2
      Source/miniwin/misc_msg.cpp

2
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 },

2
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

2
Source/engine.h

@ -224,7 +224,7 @@ struct Size {
}
};
struct RECT32 {
struct Rectangle {
int x;
int y;
int w;

2
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));
}

Loading…
Cancel
Save