this should be more correct

This commit is contained in:
NishiOwO
2026-01-05 23:27:18 +09:00
parent d3751c0bf9
commit e2aecbf9d4

View File

@@ -799,7 +799,7 @@ void MwGetScreenSize(MwWidget handle, MwRect* rect) {
} }
int MwGetCoordinateType(MwWidget handle) { int MwGetCoordinateType(MwWidget handle) {
if(handle->parent == NULL) { if(handle->parent == NULL || handle->parent->lowlevel == NULL) {
return handle->lowlevel->common.coordinate_type; return handle->lowlevel->common.coordinate_type;
} else { } else {
return MwCoordinatesLocal; return MwCoordinatesLocal;