QTfrontend/gameuiconfig.cpp
changeset 7633 d4251e519062
parent 7565 00568d3054d0
child 7672 686ba86ae0e3
--- a/QTfrontend/gameuiconfig.cpp	Sat Aug 25 22:55:47 2012 +0200
+++ b/QTfrontend/gameuiconfig.cpp	Thu Aug 30 22:13:42 2012 -0400
@@ -123,6 +123,7 @@
 void GameUIConfig::reloadVideosValues(void)
 {
     Form->ui.pageVideos->framerateBox->setValue(value("videorec/fps",25).toUInt());
+    Form->ui.pageVideos->bitrateBox->setValue(value("videorec/bitrate",400).toUInt());
     bool useGameRes = value("videorec/usegameres",true).toBool();
     if (useGameRes)
     {
@@ -232,6 +233,7 @@
     setValue("videorec/videocodec", videoCodec());
     setValue("videorec/audiocodec", audioCodec());
     setValue("videorec/fps", rec_Framerate());
+    setValue("videorec/bitrate", rec_Bitrate());
     setValue("videorec/width", res.width());
     setValue("videorec/height", res.height());
     setValue("videorec/usegameres", Form->ui.pageVideos->checkUseGameRes->isChecked());
@@ -466,6 +468,11 @@
     return Form->ui.pageVideos->framerateBox->value();
 }
 
+int GameUIConfig::rec_Bitrate()
+{
+    return Form->ui.pageVideos->bitrateBox->value();
+}
+
 bool GameUIConfig::recordAudio()
 {
     return Form->ui.pageVideos->checkRecordAudio->isChecked();