Browse Source

Add missing call to FreeLibrary()

pull/310/head
Luciano Iam 4 years ago
parent
commit
416af1b2ec
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      dgl/src/pugl.cpp

+ 3
- 0
dgl/src/pugl.cpp View File

@@ -226,7 +226,10 @@ double puglGetDesktopScaleFactor(const PuglView* const view)

DWORD scaleFactor = 0;
if (GetScaleFactorForMonitor(hMon, &scaleFactor) == 0 && scaleFactor != 0)
{
FreeLibrary(Shcore);
return static_cast<double>(scaleFactor) / 100.0;
}
}

FreeLibrary(Shcore);


Loading…
Cancel
Save