You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/10/04 02:05:41 UTC

[jira] [Resolved] (FLEX-33739) Duplication segment of code calling MultiBitmapSource getSource(dpi)

     [ https://issues.apache.org/jira/browse/FLEX-33739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean resolved FLEX-33739.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Apache Flex 4.11.0

Checked into develop

> Duplication segment of code calling MultiBitmapSource getSource(dpi)
> --------------------------------------------------------------------
>
>                 Key: FLEX-33739
>                 URL: https://issues.apache.org/jira/browse/FLEX-33739
>             Project: Apache Flex
>          Issue Type: Improvement
>    Affects Versions: Apache Flex 4.10.0
>            Reporter: Justin Mclean
>            Assignee: Justin Mclean
>            Priority: Minor
>              Labels: easyfix
>             Fix For: Apache Flex 4.11.0
>
>
> MultiBitmapSource getSource(dpi) method is called 3 times in the SDK with exactly the same code:
>     var app:Object = FlexGlobals.topLevelApplication;
>                var dpi:Number;
>                if ("runtimeDPI" in app)
>                    dpi = app["runtimeDPI"];
>                else
>                    dpi = DensityUtil.getRuntimeDPI();
>                var multiSource:Object = MultiDPIBitmapSource(source).getSource(dpi);
> It would be better to have this code embedded in the MultiBitmapSource getSource() method.
> The desiredDPI:Number arg could be made optional, so as not to break existing code.



--
This message was sent by Atlassian JIRA
(v6.1#6144)