mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 07:10:40 +01:00
[poincare] Make ParenthesisLayoutNode buffer static
This commit is contained in:
@@ -26,6 +26,7 @@ objs += $(addprefix poincare/src/,\
|
||||
left_square_bracket_layout_node.o\
|
||||
matrix_layout_node.o\
|
||||
nth_root_layout_node.o\
|
||||
parenthesis_layout_node.o\
|
||||
product_layout_node.o\
|
||||
right_parenthesis_layout_node.o\
|
||||
right_square_bracket_layout_node.o\
|
||||
|
||||
@@ -24,7 +24,7 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
KDColor s_parenthesisWorkingBuffer[k_parenthesisCurveHeight*k_parenthesisCurveWidth];
|
||||
static KDColor s_parenthesisWorkingBuffer[k_parenthesisCurveHeight*k_parenthesisCurveWidth];
|
||||
void computeSize() override {
|
||||
m_frame.setSize(KDSize(parenthesisWidth(), childHeight() + k_verticalMargin));
|
||||
m_sized = true;
|
||||
|
||||
7
poincare/src/parenthesis_layout_node.cpp
Normal file
7
poincare/src/parenthesis_layout_node.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <poincare/parenthesis_layout_node.h>
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
KDColor ParenthesisLayoutNode::s_parenthesisWorkingBuffer[];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user