mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 04:22:50 +02:00
Return _gfxInit() retval properly. _viOpenLayer and _viCreateStrayLayer are broken.
This commit is contained in:
parent
ec1faa34ef
commit
c5e6783870
@ -26,7 +26,7 @@ static Result _gfxInit(viServiceType servicetype, const char *DisplayName, u32 L
|
||||
|
||||
if (R_SUCCEEDED(rc)) g_gfxInitialized = 1;
|
||||
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
void gfxInitDefault(void) {
|
||||
|
@ -241,6 +241,7 @@ Result viCloseDisplay(viDisplay *display) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
//TODO: BROKEN
|
||||
static Result _viOpenLayer(u8 NativeWindow[0x100], u64 *NativeWindow_Size, const viDisplay *display, u64 LayerId, u64 AppletResourceUserId) {
|
||||
IpcCommand c;
|
||||
ipcInitialize(&c);
|
||||
@ -287,6 +288,7 @@ static Result _viOpenLayer(u8 NativeWindow[0x100], u64 *NativeWindow_Size, const
|
||||
return rc;
|
||||
}
|
||||
|
||||
//TODO: BROKEN
|
||||
static Result _viCreateStrayLayer(u8 NativeWindow[0x100], u64 *NativeWindow_Size, const viDisplay *display, u32 LayerFlags, u64 *LayerId) {
|
||||
IpcCommand c;
|
||||
ipcInitialize(&c);
|
||||
|
Loading…
Reference in New Issue
Block a user