feat: Add render mode options for image display in gsplash

This commit is contained in:
2026-05-24 11:00:21 +05:30
parent b5de077ac3
commit be9093655d
3 changed files with 106 additions and 13 deletions

View File

@@ -49,11 +49,25 @@ make check
## Usage
```bash
./gsplash <image_path> <game_executable> [game_arguments...]
gsplash <image_path> <game_executable> [game_arguments...]
```
Example:
```bash
./gsplash assets/splash.jpg /path/to/game --fullscreen --profile=default
gsplash assets/splash.jpg /path/to/game --fullscreen --profile=default
```
Gsplash allows you to configure how the image is displayed with 3 modes:
- `center` (default): letterbox
- `crop`: fill screen by cropping
- `stretch`: Distort to fill screen
You can set these by using the `-m` or `--mode` flag:
```bash
gsplash [--mode=stretch|center|crop] <image> <executable> [args...]
gsplash -m stretch|center|crop <image> <executable> [args...]
```