mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Fix oversight in 83f4d8789b
(cherry picked from commit fbb6052c30)
Signed-off-by: phosit <phosit@autistici.org>
This commit is contained in:
parent
10408b46c2
commit
cc56bafc66
1 changed files with 2 additions and 1 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include "maths/Rect.h"
|
||||
#include "maths/Size2D.h"
|
||||
|
||||
#include <limits>
|
||||
#include <vector>
|
||||
|
||||
CButton::CButton(CGUI& pGUI)
|
||||
|
|
@ -76,7 +77,7 @@ CSize2D CButton::GetTextSize()
|
|||
|
||||
CSize2D CButton::GetPreferredTextSize()
|
||||
{
|
||||
return CGUIText{m_pGUI, m_Caption, m_Font, m_pGUI.GetWindowSize().Width, m_BufferZone, m_TextAlign, this}.GetSize();
|
||||
return CGUIText{m_pGUI, m_Caption, m_Font, std::numeric_limits<float>::max(), m_BufferZone, m_TextAlign, this}.GetSize();
|
||||
}
|
||||
|
||||
void CButton::HandleMessage(SGUIMessage& Message)
|
||||
|
|
|
|||
Loading…
Reference in a new issue