changed comment when clicking edit gfx; use requestAnimationFrame when present

This commit is contained in:
Steven Hugg 2017-05-11 08:31:44 -04:00
parent 136b1ad175
commit 8b151fbe37
3 changed files with 3 additions and 3 deletions

View File

@ -202,7 +202,7 @@ var AnimationTimer = function(frequencyHz, callback) {
var intervalMsec = 1000.0 / frequencyHz;
var running;
var lastts = 0;
var useReqAnimFrame = true;
var useReqAnimFrame = window.requestAnimationFrame ? true : false;
function scheduleFrame() {
if (useReqAnimFrame)

View File

@ -1064,7 +1064,7 @@ function openBitmapEditorAtCursor() {
editor.setSelection(data.end, data.start);
openBitmapEditorWithParams(data.obj, editor.getSelection(), paldata, palbytestr);
} else {
alert("No bitmap spec found in format /*{w:,h:,bpp:,count:...}*/");
alert("To edit graphics, move cursor to a constant array preceded by a comment in the format:\n\n/*{w:,h:,bpp:,count:...}*/\n\n(See code examples)");
}
}

View File

@ -30,7 +30,7 @@
<script src="jquery/jquery-2.2.3.min.js"></script>
<script src="javatari.js/release/javatari/javatari.js"></script>
<script src="src/cpu/z80.js"></script>
<script src="src/cpu/z80fast.js"></script>
<script src="src/emu.js"></script>
<script src="src/util.js"></script>
<script src="src/disasm.js"></script>