I confirm your kvetch. Line 34 is a call to WidgetSet.GetDpiForMonitor(). Lazarus trunk (albeit a few days old), Linux on AMD64, Debian "buster", KDE.
Well caught sir, suggest you raise a bug report on Mantis to make sure that the relevant developer (who is probably not in this forum) is aware.
MarkMLl