2005-06-30, 19:32
hi all,
as you know, scaling stuff for differing resolutions is a pain currently with python. you have to retrieve the width/height and use that info to scale where you place everything. this also has to be handled by python currently (ie in every script).
the ability to do the scaling within xbmc is ofcourse already there. i'm thinking of perhaps adding the ability for you to specify how python controls should be scaled in a single function call (ie basically specify somewhere in your script what resolution it is designed for, and then not have to worry about other resolutions at all)
the idea is you'd do something like:
xbmc.setscriptresolution(pal_4x3)
and if xbmc is running in a different resolution, it'll auto-scale the controls at render time.
please let me know what you think of this idea.
i'll probably also add xbmc.getresolution() at the same time so that if you want to, you can do custom setups for each resolution.
cheers,
jonathan
as you know, scaling stuff for differing resolutions is a pain currently with python. you have to retrieve the width/height and use that info to scale where you place everything. this also has to be handled by python currently (ie in every script).
the ability to do the scaling within xbmc is ofcourse already there. i'm thinking of perhaps adding the ability for you to specify how python controls should be scaled in a single function call (ie basically specify somewhere in your script what resolution it is designed for, and then not have to worry about other resolutions at all)
the idea is you'd do something like:
xbmc.setscriptresolution(pal_4x3)
and if xbmc is running in a different resolution, it'll auto-scale the controls at render time.
please let me know what you think of this idea.
i'll probably also add xbmc.getresolution() at the same time so that if you want to, you can do custom setups for each resolution.
cheers,
jonathan