fix memory issue?
parent
61ae482e5d
commit
8592ad6d92
|
@ -280,7 +280,7 @@ namespace blt {
|
||||||
|
|
||||||
static inline mat4x4 ortho(float left, float right, float top, float bottom, float near, float far){
|
static inline mat4x4 ortho(float left, float right, float top, float bottom, float near, float far){
|
||||||
mat4x4 perspectiveMat4x4 {emptyMatrix};
|
mat4x4 perspectiveMat4x4 {emptyMatrix};
|
||||||
|
|
||||||
perspectiveMat4x4.m00(2/(right - left));
|
perspectiveMat4x4.m00(2/(right - left));
|
||||||
perspectiveMat4x4.m11(2/(top-bottom));
|
perspectiveMat4x4.m11(2/(top-bottom));
|
||||||
perspectiveMat4x4.m22(2/(far-near));
|
perspectiveMat4x4.m22(2/(far-near));
|
||||||
|
|
|
@ -18,7 +18,7 @@ std::vector<std::string> blt::string::TableFormatter::createTable(bool top, bool
|
||||||
std::vector<std::string> table;
|
std::vector<std::string> table;
|
||||||
const auto& tableHeader = generateColumnHeader();
|
const auto& tableHeader = generateColumnHeader();
|
||||||
const auto& topSeparator = generateTopSeparator(tableHeader.size());
|
const auto& topSeparator = generateTopSeparator(tableHeader.size());
|
||||||
const auto& lineSeparator = generateSeparator(tableHeader.size());
|
const auto& lineSeparator = generateSeparator(tableHeader.size() - 1);
|
||||||
|
|
||||||
if (top)
|
if (top)
|
||||||
table.push_back(topSeparator);
|
table.push_back(topSeparator);
|
||||||
|
@ -108,7 +108,7 @@ std::string blt::string::TableFormatter::generateSeparator(size_t size) {
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
if (i == nextIndex) {
|
if (i == nextIndex) {
|
||||||
auto currentColumnSize = columns[currentColumnIndex++].maxColumnLength + m_columnPadding*2;
|
auto currentColumnSize = columns[currentColumnIndex++].maxColumnLength + m_columnPadding*2;
|
||||||
nextIndex += currentColumnSize+1;
|
nextIndex += currentColumnSize + 1;
|
||||||
wholeWidthSeparator += "+";
|
wholeWidthSeparator += "+";
|
||||||
} else
|
} else
|
||||||
wholeWidthSeparator += "-";
|
wholeWidthSeparator += "-";
|
||||||
|
|
Loading…
Reference in New Issue