unload api call macro
if panel dims are invalid, fill in full screen dims