get_screen_viewport: fix 2P splitscreen viewport order

This commit is contained in:
James R 2023-04-18 01:46:00 -07:00
parent 6fec652bde
commit d78b17170c

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)
{