changeset 7661:90118ab3c95c

argh. gcc sux. someone please explain why float x=0; if(x>0) ... is true.
author arpi
date Mon, 07 Oct 2002 21:24:44 +0000
parents 7ff053498bf2
children c92b0b4d9e77
files libmpcodecs/vd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd.c	Mon Oct 07 20:01:28 2002 +0000
+++ b/libmpcodecs/vd.c	Mon Oct 07 21:24:44 2002 +0000
@@ -221,7 +221,7 @@
     // check source format aspect, calculate prescale ::atmos
     screen_size_x=sh->disp_w;
     screen_size_y=sh->disp_h;
-    if(screen_size_xy>0){
+    if(screen_size_xy>=0.001){
      if(screen_size_xy<=8){
        // -xy means x+y scale
        screen_size_x*=screen_size_xy;