Skip to content
Snippets Groups Projects
Commit f5ab6c69 authored by DD Liu's avatar DD Liu
Browse files

add comment on default resolution

parent 8ea5cdce
No related branches found
No related tags found
No related merge requests found
......@@ -195,6 +195,7 @@ class CostumeTab extends React.Component {
this.fileInput = input;
}
formatCostumeDetails (size, optResolution) {
// If no resolution is given, assume that the costume is an SVG
const resolution = optResolution ? optResolution : 1;
// Convert size to stage units by dividing by resolution
// Round up width and height for scratch-flash compatibility
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment