diff gui/ui/actions.c @ 36272:aa0011dfbfdc

Use again special value -1 to set original aspect ratio. With -1, the switch_ratio command does exactly the calculation being performed here. This reverts changes in setting the value for the aspect ratio made in r36358 and r36360.
author ib
date Sat, 27 Jul 2013 22:25:57 +0000
parents bf9a9e07377a
children ba5fa3e71247
line wrap: on
line diff
--- a/gui/ui/actions.c	Sat Jul 27 21:16:06 2013 +0000
+++ b/gui/ui/actions.c	Sat Jul 27 22:25:57 2013 +0000
@@ -440,7 +440,7 @@
 
         case 1:
         default:
-            aspect = (float)guiInfo.sh_video->disp_w / guiInfo.sh_video->disp_h;
+            aspect = -1;
         }
 
         snprintf(cmd, sizeof(cmd), "switch_ratio %f", aspect);