1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-24 21:39:35 +00:00

Switch to png screen shot format for zilmar-spec builds.

This commit is contained in:
Sergey Lipskiy 2017-10-01 11:36:45 +07:00
parent 1479354d90
commit 57da967e7c
3 changed files with 7 additions and 7 deletions

View File

@ -120,7 +120,7 @@ void ConfigDialog::_init()
switch (config.texture.screenShotFormat) {
case 0:
ui->bmpRadioButton->setChecked(true);
ui->pngRadioButton->setChecked(true);
break;
case 1:
ui->jpegRadioButton->setChecked(true);
@ -385,7 +385,7 @@ void ConfigDialog::accept()
else if (ui->blnr3PointRadioButton->isChecked())
config.texture.bilinearMode = BILINEAR_3POINT;
if (ui->bmpRadioButton->isChecked())
if (ui->pngRadioButton->isChecked())
config.texture.screenShotFormat = 0;
else if (ui->jpegRadioButton->isChecked())
config.texture.screenShotFormat = 1;

View File

@ -8,9 +8,9 @@
EXPORT void CALL SaveScreenshot(const wchar_t * _folder, const char * _name, int _width, int _height, const unsigned char * _data)
{
const char * bmp = "bmp";
const char * png = "png";
const char * jpg = "jpg";
const char * fileExt = config.texture.screenShotFormat == 0 ? bmp : jpg;
const char * fileExt = config.texture.screenShotFormat == 0 ? png : jpg;
QString folderName = QString::fromWCharArray(_folder);
QDir folder;
if (!folder.exists(folderName) && !folder.mkpath(folderName))

View File

@ -941,9 +941,9 @@
</widget>
</item>
<item>
<widget class="QRadioButton" name="bmpRadioButton">
<widget class="QRadioButton" name="pngRadioButton">
<property name="text">
<string>BMP</string>
<string>PNG</string>
</property>
<attribute name="buttonGroup">
<string notr="true">screenshotButtonGroup</string>
@ -4195,9 +4195,9 @@
<buttongroups>
<buttongroup name="screenshotButtonGroup"/>
<buttongroup name="aspectButtonGroup"/>
<buttongroup name="osdButtonGroup"/>
<buttongroup name="fixTexrectCoordsButtonGroup"/>
<buttongroup name="bloomBlendModeButtonGroup"/>
<buttongroup name="osdButtonGroup"/>
<buttongroup name="factorButtonGroup"/>
</buttongroups>
</ui>