mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-09 11:44:15 -04:00
JStudio/JMessage work and cleanup
This commit is contained in:
@@ -346,7 +346,7 @@ static u32 __GXGetNumXfbLines(u32 height, u32 scale) {
|
||||
return actualHeight;
|
||||
}
|
||||
|
||||
u16 GXGetNumXfbLines(const u16 efbHeight, f32 yScale) {
|
||||
u16 GXGetNumXfbLines(u16 efbHeight, f32 yScale) {
|
||||
u32 scale = (u32)(256.0f / yScale) & 0x1FF;
|
||||
|
||||
return __GXGetNumXfbLines(efbHeight, scale);
|
||||
|
||||
@@ -330,10 +330,6 @@ static inline void __OSSwitchThread(OSThread* nextThread) {
|
||||
OSLoadContext(&nextThread->context);
|
||||
}
|
||||
|
||||
inline OSThread* i_OSGetCurrentThread(void) {
|
||||
return OS_CURRENT_THREAD;
|
||||
}
|
||||
|
||||
static OSThread* SelectThread(BOOL yield) {
|
||||
OSContext* currentContext;
|
||||
OSThread* currentThread;
|
||||
@@ -346,7 +342,7 @@ static OSThread* SelectThread(BOOL yield) {
|
||||
}
|
||||
|
||||
currentContext = OSGetCurrentContext();
|
||||
currentThread = i_OSGetCurrentThread();
|
||||
currentThread = OSGetCurrentThread();
|
||||
if (currentContext != ¤tThread->context) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user