Revert "Avoid unnecessary calculations when the passed DPI is the active DPI" (#13672)

This commit is contained in:
Michael Steenbeek 2021-01-01 13:29:10 +01:00 committed by GitHub
parent eda01dc608
commit ad52abf39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -1010,12 +1010,6 @@ void OpenGLDrawingContext::HandleTransparency()
void OpenGLDrawingContext::SetDPI(rct_drawpixelinfo* dpi)
{
if (dpi == _dpi)
{
// Don't need to recalculate anything if identical.
return;
}
auto screenDPI = _engine->GetDPI();
auto bytesPerRow = screenDPI->GetBytesPerRow();
auto bitsOffset = static_cast<size_t>(dpi->bits - screenDPI->bits);