mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-23 22:58:57 +02:00
[qt] fix aspect ratio enum mismatch for framebuffer (#2792)
the framebuffer:
```c++
enum class AspectRatio {
Default,
R4_3,
R21_9,
R16_10,
StretchToWindow,
};
```
the actual enum
```c++
ENUM(AspectRatio, R16_9, R4_3, R21_9, R16_10, Stretch);
```
If someone were to add a new setting it would likely cause catastrophe.
1280/720 = 16/9
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2792
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: crueter <crueter@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
df26fe2cac
commit
d0206c35fb
4 changed files with 48 additions and 87 deletions
|
|
@ -235,9 +235,9 @@ int main(int argc, char** argv) {
|
|||
while (optind < argc) {
|
||||
int arg = getopt_long(argc, argv, "g:fhvp::c:u:d:", long_options, &option_index);
|
||||
if (arg != -1) {
|
||||
switch (static_cast<char>(arg)) {
|
||||
switch (char(arg)) {
|
||||
case 'd':
|
||||
override_gdb_port = static_cast<uint16_t>(atoi(optarg));
|
||||
override_gdb_port = uint16_t(atoi(optarg));
|
||||
break;
|
||||
case 'c':
|
||||
config_path = optarg;
|
||||
|
|
@ -249,11 +249,9 @@ int main(int argc, char** argv) {
|
|||
case 'h':
|
||||
PrintHelp(argv[0]);
|
||||
return 0;
|
||||
case 'g': {
|
||||
const std::string str_arg(optarg);
|
||||
filepath = str_arg;
|
||||
case 'g':
|
||||
filepath = std::string(optarg);
|
||||
break;
|
||||
}
|
||||
case 'm': {
|
||||
use_multiplayer = true;
|
||||
const std::string str_arg(optarg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue