Author: duncan
Date: Sat Sep 23 15:53:44 2006
New Revision: 8233
Modified:
branches/rel-1-5/freevo/src/osd.py
Log:
Added OSD_FORCE_SIZE, default 1.5 when OSD_FORCE_FONT is used
Modified: branches/rel-1-5/freevo/src/osd.py
==============================================================================
--- branches/rel-1-5/freevo/src/osd.py (original)
+++ branches/rel-1-5/freevo/src/osd.py Sat Sep 23 15:53:44 2006
@@ -213,11 +213,11 @@
def __getfont__(self, filename, ptsize):
ptsize = int(ptsize / 0.7) # XXX pygame multiplies by 0.7 for some
reason
- _debug_('Loading font "%s"' % filename, 2)
-
if hasattr(config, 'OSD_FORCE_FONT') and config.OSD_FORCE_FONT:
filename = config.OSD_FORCE_FONT
- ptsize *= 1.5
+ ptsize *= hasattr(config, 'OSD_FORCE_SIZE') and
config.OSD_FORCE_SIZE or 1.5
+
+ _debug_('Loading font "%s"' % filename, 2)
font = self.__loadfont__(filename, ptsize)
if not font:
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog