forgot to update these

This commit is contained in:
BernardoGiordano 2019-05-24 22:32:33 +02:00
parent fae3582409
commit ee19c30a03
5 changed files with 6 additions and 6 deletions

View file

@ -122,7 +122,7 @@ static std::queue<u16> widthCacheOrder;
std::string StringUtils::splitWord(const std::string& text, float scaleX, float maxWidth)
{
std::string word = text;
std::string word = text;
if (StringUtils::textWidth(word, scaleX) > maxWidth) {
float currentWidth = 0.0f;
for (size_t i = 0; i < word.size(); i++) {

View file

@ -54,7 +54,7 @@ CHEATS := cheats
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE
CFLAGS := -g -Wall -Wextra -O3 -ffunction-sections -flto \
-Wno-write-strings -Wno-unused-value -fomit-frame-pointer \

View file

@ -46,7 +46,7 @@ std::pair<bool, std::string> KeyboardManager::keyboard(const std::string& sugges
swkbdConfigSetInitialText(&kbd, suggestion.c_str());
swkbdConfigSetStringLenMax(&kbd, CUSTOM_PATH_LEN);
char tmpoutstr[CUSTOM_PATH_LEN] = {0};
Result res = swkbdShow(&kbd, tmpoutstr, CUSTOM_PATH_LEN);
Result res = swkbdShow(&kbd, tmpoutstr, CUSTOM_PATH_LEN);
swkbdClose(&kbd);
if (R_SUCCEEDED(res)) {
return std::make_pair(true, std::string(tmpoutstr));

View file

@ -114,7 +114,7 @@ bool Gui::askForConfirmation(const std::string& text)
bool ret = false;
Clickable* buttonYes = new Clickable(322, 462, 316, 56, theme().c3, theme().c6, "Yes", true);
Clickable* buttonNo = new Clickable(642, 462, 316, 56, theme().c3, theme().c6, "No", true);
HidHorizontal* mhid = new HidHorizontal(2, 2);
HidHorizontal* mhid = new HidHorizontal(2, 2);
u32 w, h;
SDLH_GetTextDimensions(28, text.c_str(), &w, &h);

View file

@ -102,7 +102,7 @@ void sendToPKSMBrigde(size_t index, u128 uid)
size_t tosend;
while (total < size) {
tosend = size - total > chunk ? chunk : size - total;
n = send(fd, data + total, tosend, 0);
n = send(fd, data + total, tosend, 0);
if (n == -1) {
break;
}
@ -175,7 +175,7 @@ void recvFromPKSMBridge(size_t index, u128 uid)
size_t torecv;
while (total < size) {
torecv = size - total > chunk ? chunk : size - total;
n = recv(fdconn, data + total, torecv, 0);
n = recv(fdconn, data + total, torecv, 0);
if (n == -1) {
break;
}