Increase the maximum zoom to 300%.

Originally committed to SVN as r3634.
This commit is contained in:
Thomas Goyne 2009-10-06 17:43:15 +00:00
parent 1f27582b50
commit 37ec7ad62c
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ void FrameMain::InitToolbar () {
Toolbar->AddTool(Menu_Video_Zoom_In,_("Zoom in"),GETIMAGE(zoom_in_button_24),wxNullBitmap,wxITEM_NORMAL,_("Zoom video in")); Toolbar->AddTool(Menu_Video_Zoom_In,_("Zoom in"),GETIMAGE(zoom_in_button_24),wxNullBitmap,wxITEM_NORMAL,_("Zoom video in"));
Toolbar->AddTool(Menu_Video_Zoom_Out,_("Zoom out"),GETIMAGE(zoom_out_button_24),wxNullBitmap,wxITEM_NORMAL,_("Zoom video out")); Toolbar->AddTool(Menu_Video_Zoom_Out,_("Zoom out"),GETIMAGE(zoom_out_button_24),wxNullBitmap,wxITEM_NORMAL,_("Zoom video out"));
wxArrayString choices; wxArrayString choices;
for (int i=1;i<=16;i++) { for (int i=1;i<=24;i++) {
wxString toAdd = wxString::Format(_T("%i"),int(i*12.5)); wxString toAdd = wxString::Format(_T("%i"),int(i*12.5));
if (i%2) toAdd += _T(".5"); if (i%2) toAdd += _T(".5");
toAdd += _T("%"); toAdd += _T("%");

View File

@ -531,7 +531,7 @@ void VideoDisplay::SetZoom(double value) {
/// @param value The new zoom position /// @param value The new zoom position
void VideoDisplay::SetZoomPos(int value) { void VideoDisplay::SetZoomPos(int value) {
if (value < 0) value = 0; if (value < 0) value = 0;
if (value > 15) value = 15; if (value > 23) value = 23;
SetZoom(double(value+1)/8.0); SetZoom(double(value+1)/8.0);
if (zoomBox->GetSelection() != value) zoomBox->SetSelection(value); if (zoomBox->GetSelection() != value) zoomBox->SetSelection(value);
} }