Edit box baseline (regresses volume control dialog though)

This commit is contained in:
elasota
2020-02-03 04:54:55 -05:00
parent 25ee3531b2
commit dee560492e
9 changed files with 126 additions and 8 deletions

View File

@@ -47,6 +47,7 @@ struct Rect
static Rect Create(int16_t top, int16_t left, int16_t bottom, int16_t right);
static Rect CreateFromPoints(const Point &topLeft, const Point &bottomRight);
static Rect CreateLargest();
};
struct BERect
@@ -244,3 +245,8 @@ inline Rect Rect::CreateFromPoints(const Point &topLeft, const Point &bottomRigh
{
return Rect::Create(topLeft.v, topLeft.h, bottomRight.v, bottomRight.h);
}
inline Rect Rect::CreateLargest()
{
return Rect::Create(-0x8000, -0x8000, 0x7fff, 0x7fff);
}