notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80e531d
)
add aspect ratio for sdl fullscreen
author
kub
<derkub@gmail.com>
Tue, 22 Feb 2022 20:43:51 +0000
(20:43 +0000)
committer
kub
<derkub@gmail.com>
Tue, 22 Feb 2022 22:28:56 +0000
(22:28 +0000)
plat_sdl.c
patch
|
blob
|
blame
|
history
diff --git
a/plat_sdl.c
b/plat_sdl.c
index
6a86d1d
..
61e39c1
100644
(file)
--- a/
plat_sdl.c
+++ b/
plat_sdl.c
@@
-218,6
+218,8
@@
int plat_sdl_init(void)
if (g_menuscreen_h > h)
g_menuscreen_h = h;
}
+ if (plat_target.vout_fullscreen)
+ g_menuscreen_w = g_menuscreen_h * fs_w / fs_h;
ret = plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 1);
if (ret != 0) {