Skip to content
Snippets Groups Projects
Commit 50b7d3ad authored by adroitwhiz's avatar adroitwhiz
Browse files

Round off getStageDimensions()

parent 98f5210c
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,10 @@ const getStageDimensions = (stageSize, isFullScreen) => {
stageDimensions.height = stageDimensions.scale * stageDimensions.heightDefault;
stageDimensions.width = stageDimensions.scale * stageDimensions.widthDefault;
}
// Round off dimensions to prevent resampling/blurriness
stageDimensions.height = Math.round(stageDimensions.height);
stageDimensions.width = Math.round(stageDimensions.width);
return stageDimensions;
};
......
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