mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Fog factor correction, small fixes
This commit is contained in:
parent
f6c74dfb8b
commit
ccbfaa3a86
5 changed files with 9 additions and 9 deletions
|
|
@ -10,25 +10,25 @@ using std::stringstream;
|
|||
using std::wstring;
|
||||
using std::wstringstream;
|
||||
|
||||
wstring lfill(wstring s, int length, wchar_t c) {
|
||||
wstring lfill(wstring s, uint length, wchar_t c) {
|
||||
if (s.length() >= length) {
|
||||
return s;
|
||||
}
|
||||
wstringstream ss;
|
||||
for (int i = 0; i < length-s.length(); i++) {
|
||||
for (uint i = 0; i < length-s.length(); i++) {
|
||||
ss << c;
|
||||
}
|
||||
ss << s;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
wstring rfill(wstring s, int length, wchar_t c) {
|
||||
wstring rfill(wstring s, uint length, wchar_t c) {
|
||||
if (s.length() >= length) {
|
||||
return s;
|
||||
}
|
||||
wstringstream ss;
|
||||
ss << s;
|
||||
for (int i = 0; i < length-s.length(); i++) {
|
||||
for (uint i = 0; i < length-s.length(); i++) {
|
||||
ss << c;
|
||||
}
|
||||
return ss.str();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue