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] [Resolved] (FLEX-33739) Duplication segment of code calling MultiBitmapSource getSource(dpi)
Date Fri, 04 Oct 2013 00:05:41 GMT

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

Mime
View raw message