(Apple) ctx_get_metrics - set 'value' to 0 if type is unknown

This commit is contained in:
Twinaphex 2015-04-08 17:20:14 +02:00
parent da212f460f
commit 371ed277a9

View File

@ -544,6 +544,7 @@ static bool apple_gfx_ctx_get_metrics(void *data, enum display_metric_types type
*value = (displayWidth/ physicalWidth) * 25.4f;
break;
default:
*value = 0;
return false;
}