Ref-counting fix

This commit is contained in:
Michal Moskal 2016-08-25 15:45:43 +02:00
parent e7a49acac0
commit 7053fd1490
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ namespace pxsim {
export function createImageFromString(text: string): Image {
let font = board().font;
let w = font.width;
let sprite = createImage(6 * text.length - 1);
let sprite = createInternalImage(6 * text.length - 1);
let k = 0;
for (let i = 0; i < text.length; i++) {
let charCode = text.charCodeAt(i);