Changeset 921bcd3431cf0fb52c273471d38b572775e17f28

Show
Ignore:
Timestamp:
12/30/07 23:34:37 (1 year ago)
Author:
Jason Michalski <armooo@armooo.net>
git-committer:
Jason Michalski <armooo@armooo.net> 1199079277 -0600
git-parent:

[ce3929651052e7b4bcc1f294478d33da96dc9abe]

git-author:
William McBrine <wmcbrine@gmail.com> 1199041245 -0500
Message:

Use the same rounding for width as for height in platform sections -- covers ticket #57.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • config.py

    r00f2d94 r921bcd3  
    126126        try: 
    127127            height = int(config.get('_tivo_' + tsn, 'height')) 
    128             return nearest(height, getValidHeights()
     128            return nearestTivoHeight(height
    129129        except NoOptionError: 
    130130            pass 
     
    139139    if tsn and config.has_section('_tivo_' + tsn): 
    140140        try: 
    141             return config.get('_tivo_' + tsn, 'width') 
     141            width = int(config.get('_tivo_' + tsn, 'width')) 
     142            return nearestTivoWidth(width) 
    142143        except NoOptionError: 
    143144            pass 
     
    184185    except NoOptionError: #default 1024k 
    185186        return '1024k' 
    186