mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-05 16:09:24 +02:00
nwindowGetDefault: Explicitly initialize dimensions to 1280x720 because 1.x reports a default size of 1x1
This commit is contained in:
parent
82e526c72f
commit
50baeeaa80
@ -27,8 +27,11 @@ void __nx_win_init(void)
|
||||
rc = viCreateLayer(&g_viDisplay, &g_viLayer);
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
rc = viSetLayerScalingMode(&g_viLayer, ViScalingMode_FitToLayer);
|
||||
if (R_SUCCEEDED(rc))
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
rc = nwindowCreateFromLayer(&g_defaultWin, &g_viLayer);
|
||||
if (R_SUCCEEDED(rc))
|
||||
nwindowSetDimensions(&g_defaultWin, 1280, 720);
|
||||
}
|
||||
if (R_FAILED(rc))
|
||||
viCloseLayer(&g_viLayer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user