mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
Change Steam picture position live from the session menu (#3661)
Use independent portrait and landscape alignment, with Top and 1280×800 as the default in Steam portrait. Keep explicit resolutions and existing controls modes.
This commit is contained in:
1 parent
ebb3bb6373
commit
f761e5f1db
46 files changed
+287
-62
No files matched your search
@@ -604,6 +604,10 @@ static void update_map(int scene_w, int scene_h) {
|
||||
float min_y = (float)g_map.ry + g_map.rh - image_h;
|
||||
if (g_map.off_y < min_y) g_map.off_y = min_y;
|
||||
if (g_map.off_y > g_map.ry) g_map.off_y = (float)g_map.ry;
|
||||
} else if (align == VKP_ALIGN_PICTURE_TOP) {
|
||||
g_map.off_y = 0;
|
||||
} else if (align == VKP_ALIGN_PICTURE_BOTTOM) {
|
||||
g_map.off_y = H - image_h;
|
||||
} else {
|
||||
g_map.off_y = (float)g_map.ry + (g_map.rh - image_h) * 0.5f;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user