From: Borrillis <bor...@us...> - 2005-10-19 22:18:32
|
Update of /cvsroot/planeshift/planeshift/src/client/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10460/src/client/gui Modified Files: psmainwidget.cpp Log Message: - Fixed fontsize so it now scales with the resolution. 800x600 is used as the base for determining the scaling factor. Index: psmainwidget.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/psmainwidget.cpp,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** psmainwidget.cpp 17 Oct 2005 19:17:23 -0000 1.56 --- psmainwidget.cpp 19 Oct 2005 22:18:23 -0000 1.57 *************** *** 424,427 **** --- 424,430 ---- float fontsize; fontsize = float(FONT_SIZE) / float(1024); + + this->windowManager->SetFontFactor( float(screenFrame.Width()) / float(800) ); + fontsize = fontsize * screenFrame.Width(); |