flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (FLEX-33739) Duplication segment of code calling MultiBitmapSource getSource(dpi)
Date Thu, 03 Oct 2013 23:38:42 GMT

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

Justin Mclean reassigned FLEX-33739:
------------------------------------

    Assignee: Justin Mclean

> 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
>
> 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)

Mime
View raw message