ソースを参照

UI: Add PAL 25 & 50 FPS as common FPS values

Gol-D-Ace 6 年 前
コミット
7c0620b54f
2 ファイル変更14 行追加1 行削除
  1. 10 0
      UI/forms/OBSBasicSettings.ui
  2. 4 1
      UI/window-basic-main.cpp

+ 10 - 0
UI/forms/OBSBasicSettings.ui

@@ -4073,6 +4073,11 @@
                  <string>24 NTSC</string>
                 </property>
                </item>
+               <item>
+                <property name="text">
+                 <string>25 PAL</string>
+                </property>
+               </item>
                <item>
                 <property name="text">
                  <string notr="true">29.97</string>
@@ -4088,6 +4093,11 @@
                  <string notr="true">48</string>
                 </property>
                </item>
+               <item>
+                <property name="text">
+                 <string>50 PAL</string>
+                </property>
+               </item>
                <item>
                 <property name="text">
                  <string notr="true">59.94</string>

+ 4 - 1
UI/window-basic-main.cpp

@@ -5693,7 +5693,7 @@ void OBSBasic::GetFPSCommon(uint32_t &num, uint32_t &den) const
 	} else if (strcmp(val, "24 NTSC") == 0) {
 		num = 24000;
 		den = 1001;
-	} else if (strcmp(val, "25") == 0) {
+	} else if (strcmp(val, "25 PAL") == 0) {
 		num = 25;
 		den = 1;
 	} else if (strcmp(val, "29.97") == 0) {
@@ -5702,6 +5702,9 @@ void OBSBasic::GetFPSCommon(uint32_t &num, uint32_t &den) const
 	} else if (strcmp(val, "48") == 0) {
 		num = 48;
 		den = 1;
+	} else if (strcmp(val, "50 PAL") == 0) {
+		num = 50;
+		den = 1;
 	} else if (strcmp(val, "59.94") == 0) {
 		num = 60000;
 		den = 1001;