Editor camera zoom and pan; fix mouse input signals; tex editor to own file; fix grid drawing

This commit is contained in:
2023-09-12 22:19:46 +00:00
parent ef95b233e2
commit e6ef147c40
14 changed files with 679 additions and 681 deletions

View File

@@ -126,7 +126,7 @@ struct gameobject *js2go(JSValue v) {
return id2go(js2int(v));
}
struct sprite *js2sprite(JSValue v) { return id2go(js2int(v)); }
struct sprite *js2sprite(JSValue v) { return id2sprite(js2int(v)); }
void *js2ptr(JSValue v) {
void *p;
@@ -1100,7 +1100,7 @@ JSValue duk_cmd(JSContext *js, JSValueConst this, int argc, JSValueConst *argv)
break;
case 126:
mainwin.height = js2int(argv[2]);
mainwin.height = js2int(argv[1]);
break;
case 127: