Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MythUIWebBrowser: set some sensible bounds to the zoom level 0.3 to 5.0
  • Loading branch information
Paul Harrison committed Apr 28, 2013
1 parent 1837955 commit 30a6b42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mythtv/libs/libmythui/mythuiwebbrowser.cpp
Expand Up @@ -1158,6 +1158,12 @@ void MythUIWebBrowser::SetZoom(float zoom)
if (!m_browser)
return;

if (zoom < 0.3)
zoom = 0.3;

if (zoom > 5.0)
zoom = 5.0;

m_zoom = zoom;
m_browser->setZoomFactor(m_zoom);
ResetScrollBars();
Expand Down

0 comments on commit 30a6b42

Please sign in to comment.