1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 08:12:53 +01:00

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

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);