this should be more correct

This commit is contained in:
Nishi 2026-01-05 23:27:18 +09:00
commit e2aecbf9d4
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

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