feat: add per player battle/DP zoom (#943)

## Link to GitHub Issue or related Pull Request, if one exists
[#0](https://github.com/spice2x/spice2x.github.io/issues/402)

## Description of change
*what does this code do?*
Simply modifing existing zoom feature with split zoom funcionality.

## Testing
*how was the code tested?*
There were no desyncs while I was playing with a friend of mine on my
setup (3700x, rtx 3060 12gb), performance was no different to regular
zoom.
This commit is contained in:
Elthiee authored and GitHub committed 2026-12-05 18:19:01 -08:00
1 parent af66dd5b50
commit 3d530bfee0
5 files changed
+352 -61

No files matched your search

+15
View File
@@ -21,6 +21,14 @@ namespace cfg {
CopyRight = 2,
};
struct split_region_setting {
int offset_x = 0;
int offset_y = 0;
float scale_x = 1.0f;
float scale_y = 1.0f;
bool keep_aspect_ratio = true;
};
struct fullscreen_setting {
int offset_x = 0;
int offset_y = 0;
@@ -28,6 +36,13 @@ namespace cfg {
float scale_y = 1.0;
bool keep_aspect_ratio = true;
ScreenDuplicateMode duplicate = ScreenDuplicateMode::None;
// dual-playfield / split-screen zoom settings (e.g. battle mode)
bool split_mode = false;
float split_ratio = 0.5f;
bool split_swap_sides = false;
split_region_setting split_left;
split_region_setting split_right;
};
extern std::optional<std::string> SCREEN_RESIZE_CFG_PATH_OVERRIDE;