mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 19:08:32 +08:00
3:2 ratio
This commit is contained in:
@@ -2464,6 +2464,9 @@ Aspect ratio
|
|||||||
:MENU:video_ratio_1_1
|
:MENU:video_ratio_1_1
|
||||||
1:1
|
1:1
|
||||||
.
|
.
|
||||||
|
:MENU:video_ratio_3_2
|
||||||
|
3:2
|
||||||
|
.
|
||||||
:MENU:video_ratio_4_3
|
:MENU:video_ratio_4_3
|
||||||
4:3
|
4:3
|
||||||
.
|
.
|
||||||
|
@@ -2469,6 +2469,9 @@ Relación de aspecto
|
|||||||
:MENU:video_ratio_1_1
|
:MENU:video_ratio_1_1
|
||||||
1:1
|
1:1
|
||||||
.
|
.
|
||||||
|
:MENU:video_ratio_3_2
|
||||||
|
3:2
|
||||||
|
.
|
||||||
:MENU:video_ratio_4_3
|
:MENU:video_ratio_4_3
|
||||||
4:3
|
4:3
|
||||||
.
|
.
|
||||||
|
@@ -2469,6 +2469,9 @@ Ratio d'aspect
|
|||||||
:MENU:video_ratio_1_1
|
:MENU:video_ratio_1_1
|
||||||
1:1
|
1:1
|
||||||
.
|
.
|
||||||
|
:MENU:video_ratio_3_2
|
||||||
|
3:2
|
||||||
|
.
|
||||||
:MENU:video_ratio_4_3
|
:MENU:video_ratio_4_3
|
||||||
4:3
|
4:3
|
||||||
.
|
.
|
||||||
|
@@ -2452,6 +2452,9 @@ Pentium III 866MHz EB (~407000 サイクル)
|
|||||||
:MENU:video_ratio_1_1
|
:MENU:video_ratio_1_1
|
||||||
1:1
|
1:1
|
||||||
.
|
.
|
||||||
|
:MENU:video_ratio_3_2
|
||||||
|
3:2
|
||||||
|
.
|
||||||
:MENU:video_ratio_4_3
|
:MENU:video_ratio_4_3
|
||||||
4:3
|
4:3
|
||||||
.
|
.
|
||||||
|
@@ -2467,6 +2467,9 @@ Pentium III 866MHz EB (~407000 주기)
|
|||||||
:MENU:video_ratio_1_1
|
:MENU:video_ratio_1_1
|
||||||
1:1
|
1:1
|
||||||
.
|
.
|
||||||
|
:MENU:video_ratio_3_2
|
||||||
|
3:2
|
||||||
|
.
|
||||||
:MENU:video_ratio_4_3
|
:MENU:video_ratio_4_3
|
||||||
4:3
|
4:3
|
||||||
.
|
.
|
||||||
|
@@ -2487,6 +2487,9 @@ proporção da tela
|
|||||||
:MENU:video_ratio_1_1
|
:MENU:video_ratio_1_1
|
||||||
1:1
|
1:1
|
||||||
.
|
.
|
||||||
|
:MENU:video_ratio_3_2
|
||||||
|
3:2
|
||||||
|
.
|
||||||
:MENU:video_ratio_4_3
|
:MENU:video_ratio_4_3
|
||||||
4:3
|
4:3
|
||||||
.
|
.
|
||||||
|
@@ -2465,6 +2465,9 @@ en boy oranı
|
|||||||
:MENU:video_ratio_1_1
|
:MENU:video_ratio_1_1
|
||||||
1:1
|
1:1
|
||||||
.
|
.
|
||||||
|
:MENU:video_ratio_3_2
|
||||||
|
3:2
|
||||||
|
.
|
||||||
:MENU:video_ratio_4_3
|
:MENU:video_ratio_4_3
|
||||||
4:3
|
4:3
|
||||||
.
|
.
|
||||||
|
@@ -2430,6 +2430,9 @@ AMD Athlon 600MHz (约 306000 周期)
|
|||||||
:MENU:video_ratio_1_1
|
:MENU:video_ratio_1_1
|
||||||
1:1
|
1:1
|
||||||
.
|
.
|
||||||
|
:MENU:video_ratio_3_2
|
||||||
|
3:2
|
||||||
|
.
|
||||||
:MENU:video_ratio_4_3
|
:MENU:video_ratio_4_3
|
||||||
4:3
|
4:3
|
||||||
.
|
.
|
||||||
|
@@ -2437,6 +2437,9 @@ AMD Athlon 600MHz (約 306000 個週期)
|
|||||||
:MENU:video_ratio_1_1
|
:MENU:video_ratio_1_1
|
||||||
1:1
|
1:1
|
||||||
.
|
.
|
||||||
|
:MENU:video_ratio_3_2
|
||||||
|
3:2
|
||||||
|
.
|
||||||
:MENU:video_ratio_4_3
|
:MENU:video_ratio_4_3
|
||||||
4:3
|
4:3
|
||||||
.
|
.
|
||||||
|
@@ -346,6 +346,7 @@ static const char *def_menu_video_frameskip[] =
|
|||||||
static const char *def_menu_video_ratio[] =
|
static const char *def_menu_video_ratio[] =
|
||||||
{
|
{
|
||||||
"video_ratio_1_1",
|
"video_ratio_1_1",
|
||||||
|
"video_ratio_3_2",
|
||||||
"video_ratio_4_3",
|
"video_ratio_4_3",
|
||||||
"video_ratio_16_9",
|
"video_ratio_16_9",
|
||||||
"video_ratio_16_10",
|
"video_ratio_16_10",
|
||||||
|
@@ -1835,6 +1835,7 @@ void UpdateOverscanMenu(void) {
|
|||||||
|
|
||||||
void aspect_ratio_menu() {
|
void aspect_ratio_menu() {
|
||||||
mainMenu.get_item("video_ratio_1_1").check(aspect_ratio_x==1&&aspect_ratio_y==1).enable(true).refresh_item(mainMenu);
|
mainMenu.get_item("video_ratio_1_1").check(aspect_ratio_x==1&&aspect_ratio_y==1).enable(true).refresh_item(mainMenu);
|
||||||
|
mainMenu.get_item("video_ratio_3_2").check(aspect_ratio_x==3&&aspect_ratio_y==2).enable(true).refresh_item(mainMenu);
|
||||||
mainMenu.get_item("video_ratio_4_3").check((aspect_ratio_x==4&&aspect_ratio_y==3)||!aspect_ratio_x||!aspect_ratio_y).enable(true).refresh_item(mainMenu);
|
mainMenu.get_item("video_ratio_4_3").check((aspect_ratio_x==4&&aspect_ratio_y==3)||!aspect_ratio_x||!aspect_ratio_y).enable(true).refresh_item(mainMenu);
|
||||||
mainMenu.get_item("video_ratio_16_9").check(aspect_ratio_x==16&&aspect_ratio_y==9).enable(true).refresh_item(mainMenu);
|
mainMenu.get_item("video_ratio_16_9").check(aspect_ratio_x==16&&aspect_ratio_y==9).enable(true).refresh_item(mainMenu);
|
||||||
mainMenu.get_item("video_ratio_16_10").check(aspect_ratio_x==16&&aspect_ratio_y==10).enable(true).refresh_item(mainMenu);
|
mainMenu.get_item("video_ratio_16_10").check(aspect_ratio_x==16&&aspect_ratio_y==10).enable(true).refresh_item(mainMenu);
|
||||||
@@ -1849,6 +1850,10 @@ bool aspect_ratio_menu_callback(DOSBoxMenu * const menu,DOSBoxMenu::item * const
|
|||||||
aspect_ratio_x = 1;
|
aspect_ratio_x = 1;
|
||||||
aspect_ratio_y = 1;
|
aspect_ratio_y = 1;
|
||||||
SetVal("render", "aspect_ratio", "1:1");
|
SetVal("render", "aspect_ratio", "1:1");
|
||||||
|
} else if (!strcmp(mname, "video_ratio_3_2")) {
|
||||||
|
aspect_ratio_x = 3;
|
||||||
|
aspect_ratio_y = 2;
|
||||||
|
SetVal("render", "aspect_ratio", "3:2");
|
||||||
} else if (!strcmp(mname, "video_ratio_4_3")) {
|
} else if (!strcmp(mname, "video_ratio_4_3")) {
|
||||||
aspect_ratio_x = 4;
|
aspect_ratio_x = 4;
|
||||||
aspect_ratio_y = 3;
|
aspect_ratio_y = 3;
|
||||||
@@ -2922,6 +2927,8 @@ void AllocCallback1() {
|
|||||||
|
|
||||||
mainMenu.alloc_item(DOSBoxMenu::item_type_id,"video_ratio_1_1").set_text("1:1").
|
mainMenu.alloc_item(DOSBoxMenu::item_type_id,"video_ratio_1_1").set_text("1:1").
|
||||||
set_callback_function(aspect_ratio_menu_callback);
|
set_callback_function(aspect_ratio_menu_callback);
|
||||||
|
mainMenu.alloc_item(DOSBoxMenu::item_type_id,"video_ratio_3_2").set_text("3:2").
|
||||||
|
set_callback_function(aspect_ratio_menu_callback);
|
||||||
mainMenu.alloc_item(DOSBoxMenu::item_type_id,"video_ratio_4_3").set_text("4:3").
|
mainMenu.alloc_item(DOSBoxMenu::item_type_id,"video_ratio_4_3").set_text("4:3").
|
||||||
set_callback_function(aspect_ratio_menu_callback);
|
set_callback_function(aspect_ratio_menu_callback);
|
||||||
mainMenu.alloc_item(DOSBoxMenu::item_type_id,"video_ratio_16_9").set_text("16:9").
|
mainMenu.alloc_item(DOSBoxMenu::item_type_id,"video_ratio_16_9").set_text("16:9").
|
||||||
|
Reference in New Issue
Block a user