Fix promise-breaking bug

This commit is contained in:
Alexander Klingenbeck 2023-06-05 22:03:08 +02:00
parent c410b28f83
commit 7036848ce6
3 changed files with 3 additions and 0 deletions

View File

@ -281,6 +281,7 @@ function main(){
//destructor: "UnloadMaterial"
}
getFunction(api.functions, "EndDrawing")!.binding = { after: gen => gen.call("app_update_quickjs", []) }
ignore("SetWindowIcons")
ignore("GetWindowHandle")

View File

@ -1187,6 +1187,7 @@ function main() {
},
//destructor: "UnloadMaterial"
};
getFunction(api.functions, "EndDrawing").binding = { after: gen => gen.call("app_update_quickjs", []) };
ignore("SetWindowIcons");
ignore("GetWindowHandle");
// Custom frame control functions

View File

@ -2378,6 +2378,7 @@ static JSValue js_beginDrawing(JSContext * ctx, JSValueConst this_val, int argc,
static JSValue js_endDrawing(JSContext * ctx, JSValueConst this_val, int argc, JSValueConst * argv) {
EndDrawing();
app_update_quickjs();
return JS_UNDEFINED;
}