From: DaveG <da...@us...> - 2005-12-21 17:31:57
|
Update of /cvsroot/planeshift/planeshift/src/setup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14781/src/setup Modified Files: pawssetupwindow.cpp Log Message: Changing the range of the font scaling scrollbar to 50% - 150% Index: pawssetupwindow.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/setup/pawssetupwindow.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** pawssetupwindow.cpp 21 Dec 2005 15:18:14 -0000 1.21 --- pawssetupwindow.cpp 21 Dec 2005 17:31:49 -0000 1.22 *************** *** 432,438 **** // Font scaling int fontFactor = configClient->GetInt("Font.ScalePercent",100); ! scbFontScale->SetMaxValue(200.0f); scbFontScale->SetTickValue(1.0f); // handled extra in onscroll ! scbFontScale->SetCurrentValue((float)fontFactor,true); } --- 432,438 ---- // Font scaling int fontFactor = configClient->GetInt("Font.ScalePercent",100); ! scbFontScale->SetMaxValue(100.0f); scbFontScale->SetTickValue(1.0f); // handled extra in onscroll ! scbFontScale->SetCurrentValue((float)fontFactor-50,true); // Shift 50 (slider's range is 50% to 150%) } *************** *** 501,505 **** else if(widget == scbFontScale) { ! int value = (int)widget->GetCurrentValue(); csString lbl; --- 501,505 ---- else if(widget == scbFontScale) { ! int value = (int)widget->GetCurrentValue()+50; // Shifted 50 (slider's range is 50% to 150%) csString lbl; *************** *** 710,714 **** configClient->SetInt ("Video.OpenGL.TextureDownsample" ,(int)scbTextureSample->GetCurrentValue()); ! configClient->SetInt("Font.ScalePercent", (int)scbFontScale->GetCurrentValue() ); configGlobal->Save(); --- 710,714 ---- configClient->SetInt ("Video.OpenGL.TextureDownsample" ,(int)scbTextureSample->GetCurrentValue()); ! configClient->SetInt("Font.ScalePercent", (int)scbFontScale->GetCurrentValue()+50 ); // Shifted 50 (slider's range is 50% to 150%) configGlobal->Save(); |