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:
Kurt Himebauch authored and GitHub committed 2026-12-03 21:13:55 -05:00
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;
}