Merge branch 'fix-2p-splitscreen-viewports' into 'master'

Fix 2P splitscreen viewports being out of order

See merge request KartKrew/Kart!1180
This commit is contained in:
Sal 2023-04-18 08:49:04 +00:00
commit 563e2f2ffd

View file

@ -124,7 +124,7 @@ static Rect get_screen_viewport(uint32_t screen, uint32_t screens, uint32_t w, u
case 1:
return {0, 0, w, h};
case 2:
return {0, screen == 1 ? (static_cast<int32_t>(h) / 2) : 0, w, (h / 2)};
return {0, screen == 0 ? (static_cast<int32_t>(h) / 2) : 0, w, (h / 2)};
default:
switch (screen)
{