1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-26 22:31:14 +00:00

Merge pull request #88 from kremnev8/master

Fix 2 issues with asset editor
This commit is contained in:
Steven Hugg 2021-10-16 12:30:37 -05:00 committed by GitHub
commit 9393b75b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1096,7 +1096,7 @@ class PixEditor extends Viewer {
var yy = y + 0.5 - this.height/2.0; var yy = y + 0.5 - this.height/2.0;
var xx2 = xx*c1 - yy*s1 + this.width/2.0 - 0.5; var xx2 = xx*c1 - yy*s1 + this.width/2.0 - 0.5;
var yy2 = yy*c1 + xx*s1 + this.height/2.0 - 0.5; var yy2 = yy*c1 + xx*s1 + this.height/2.0 - 0.5;
return this.getPixel(xx, yy); return this.getPixel(xx2, yy2);
}); });
} }
rotate90() { rotate90() {

View File

@ -138,7 +138,7 @@ export class AssetEditorView implements ProjectView, pixed.EditorContext {
var start = m.index + m[0].length; var start = m.index + m[0].length;
var end; var end;
// TODO: verilog end // TODO: verilog end
if (platform_id == 'verilog') { if (platform_id.includes('verilog')) {
end = data.indexOf("end", start); // asm end = data.indexOf("end", start); // asm
} else if (m[0].startsWith(';;')) { } else if (m[0].startsWith(';;')) {
end = data.indexOf(';;', start); // asm end = data.indexOf(';;', start); // asm