Skip to content

Commit 7b2912b

Browse files
authored
Set 272 for RGUI framebuffer size on Vita. (#18338)
1 parent 768c2bf commit 7b2912b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

menu/drivers/rgui.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
#define RGUI_DINGUX_FB_HEIGHT 240
102102
#endif
103103
#endif
104+
#define RGUI_VITA_FB_HEIGHT 272
104105

105106
/* Maximum entry value length in characters
106107
* when using fixed with layouts
@@ -6112,6 +6113,10 @@ static bool rgui_set_aspect_ratio(
61126113
#elif defined(DINGUX)
61136114
/* Dingux devices use a fixed framebuffer size */
61146115
rgui->frame_buf.height = RGUI_DINGUX_FB_HEIGHT;
6116+
#elif defined(VITA)
6117+
/* Vita screen does not match 240 */
6118+
rgui->frame_buf.height = RGUI_VITA_FB_HEIGHT;
6119+
video_driver_get_viewport_info(&vp);
61156120
#else
61166121
/* If window height is less than RGUI default
61176122
* height of 240, allow the frame buffer to

0 commit comments

Comments
 (0)