Function Platform.onDpiChanged

Called when the device pixel ratio changes. Clears cached resources and triggers re-layout so pt-based sizes are recomputed at the new scale.

void onDpiChanged();