mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Launcher: Double maximum input length for textbox inputs
This commit is contained in:
parent
c8dfb45973
commit
e20bf233aa
@ -108,7 +108,7 @@ struct LInput {
|
|||||||
int caretPos;
|
int caretPos;
|
||||||
cc_string text;
|
cc_string text;
|
||||||
int _textHeight;
|
int _textHeight;
|
||||||
char _textBuffer[STRING_SIZE];
|
char _textBuffer[STRING_SIZE * 2];
|
||||||
};
|
};
|
||||||
CC_NOINLINE void LInput_Add(void* screen, struct LInput* w, int width, const char* hintText,
|
CC_NOINLINE void LInput_Add(void* screen, struct LInput* w, int width, const char* hintText,
|
||||||
const struct LLayout* layouts);
|
const struct LLayout* layouts);
|
||||||
|
@ -53,9 +53,9 @@ void Platform_Log(const char* msg, int len) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TimeMS DateTime_CurrentUTC(void) {
|
TimeMS DateTime_CurrentUTC(void) {
|
||||||
struct timeval cur;
|
u64 sec, nanosec;
|
||||||
gettimeofday(&cur, NULL);
|
sysGetCurrentTime(&sec, &nanosec);
|
||||||
return (cc_uint64)cur.tv_sec + UNIX_EPOCH_SECONDS;
|
return sec + UNIX_EPOCH_SECONDS;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DateTime_CurrentLocal(struct DateTime* t) {
|
void DateTime_CurrentLocal(struct DateTime* t) {
|
||||||
|
@ -64,10 +64,10 @@ void DateTime_CurrentLocal(struct DateTime* t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: check this is actually accurate */
|
/* TODO: check this is actually accurate */
|
||||||
static cc_uint64 sw_freqMul = 1, sw_freqDiv = 1;
|
static cc_uint64 sw_freqDiv = 1;
|
||||||
cc_uint64 Stopwatch_ElapsedMicroseconds(cc_uint64 beg, cc_uint64 end) {
|
cc_uint64 Stopwatch_ElapsedMicroseconds(cc_uint64 beg, cc_uint64 end) {
|
||||||
if (end < beg) return 0;
|
if (end < beg) return 0;
|
||||||
return ((end - beg) * sw_freqMul) / sw_freqDiv;
|
return ((end - beg) * 1000000ULL) / sw_freqDiv;
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_uint64 Stopwatch_Measure(void) {
|
cc_uint64 Stopwatch_Measure(void) {
|
||||||
@ -76,9 +76,7 @@ cc_uint64 Stopwatch_Measure(void) {
|
|||||||
|
|
||||||
static void Stopwatch_Init(void) {
|
static void Stopwatch_Init(void) {
|
||||||
ULONGLONG freq = KeQueryPerformanceFrequency();
|
ULONGLONG freq = KeQueryPerformanceFrequency();
|
||||||
|
sw_freqDiv = freq;
|
||||||
sw_freqMul = 1000 * 1000;
|
|
||||||
sw_freqDiv = freq;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user