Project

General

Profile

Actions

Feature #957

closed

Pre-scale icons so they don't need to be re-scaled each time they are displayed.

Added by Hammel about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
General
Start date:
11 Nov 2021
Due date:
11 Nov 2021
% Done:

100%

Estimated time:
Severity:
01 - Critical

Description

The icons won't change size after the launcher starts. So it seems helpful to pre-scale them once we know the canvas size.

The easiest way to do this is to simply scale them the first time they are displayed and save the updated image. The scaling is already being done. All that's needed to is to pass in the app_entry to do_drawing, and let the latter chose which icons to use, scaling them if not previously scaled.

A boolean is needed to know if the image has been scaled previously. It should be set to false when the image file is loaded and set to true after the icon has been scaled the first time.

The selected image (icon or splash image) depends on the platform id. Zero's and B's use the icon (it's smaller and scaling will be less taxing) while the 2's and 3's will use the splash image (since they have multiple cores and more memory).


Related issues

Related to launcher - Bug #940: Colored icons are missing.ClosedHammel26 Feb 2023

Actions
Follows launcher - Bug #872: Icons should be preloaded and prescaledClosedHammel10 Nov 2021

Actions
Actions

Also available in: Atom PDF