mirror of https://github.com/OpenTTD/OpenTTD
Cleanup: remove DRAW_STRING_BUFFER constant
parent
96fef9f643
commit
a47de4b2ab
|
@ -82,9 +82,6 @@ void GameSizeChanged();
|
||||||
bool AdjustGUIZoom(bool automatic);
|
bool AdjustGUIZoom(bool automatic);
|
||||||
void UndrawMouseCursor();
|
void UndrawMouseCursor();
|
||||||
|
|
||||||
/** Size of the buffer used for drawing strings. */
|
|
||||||
static const int DRAW_STRING_BUFFER = 2048;
|
|
||||||
|
|
||||||
void RedrawScreenRect(int left, int top, int right, int bottom);
|
void RedrawScreenRect(int left, int top, int right, int bottom);
|
||||||
void GfxScroll(int left, int top, int width, int height, int xo, int yo);
|
void GfxScroll(int left, int top, int width, int height, int xo, int yo);
|
||||||
|
|
||||||
|
|
|
@ -30,10 +30,6 @@
|
||||||
|
|
||||||
#include "../safeguards.h"
|
#include "../safeguards.h"
|
||||||
|
|
||||||
/** The draw buffer must be able to contain the chat message, client name and the "[All]" message,
|
|
||||||
* some spaces and possible translations of [All] to other languages. */
|
|
||||||
static_assert((int)DRAW_STRING_BUFFER >= (int)NETWORK_CHAT_LENGTH + NETWORK_NAME_LENGTH + 40);
|
|
||||||
|
|
||||||
/** Spacing between chat lines. */
|
/** Spacing between chat lines. */
|
||||||
static const uint NETWORK_CHAT_LINE_SPACING = 3;
|
static const uint NETWORK_CHAT_LINE_SPACING = 3;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue