# HG changeset patch # User reimar # Date 1251376702 0 # Node ID 87897065b7d769679a2d3631642072834c8b3809 # Parent d3700065005f535367bc55633d73fd6bca7e9134 Fix aspect_fit to work correctly when borders need to be added on top and bottom, previous code accidentally compared against screen dimensions, resulting in cropping instead of added borders. diff -r d3700065005f -r 87897065b7d7 libvo/aspect.c --- a/libvo/aspect.c Thu Aug 27 12:35:23 2009 +0000 +++ b/libvo/aspect.c Thu Aug 27 12:38:22 2009 +0000 @@ -99,11 +99,11 @@ #ifdef ASPECT_DEBUG printf("aspect(2) wh: %dx%d (org: %dx%d)\n",*srcw,*srch,aspdat.prew,aspdat.preh); #endif - if(*srch>aspdat.scrh || *srchfith || *srch=aspdat.orgw*/){ + if(tmpw<=fitw /*&& tmpw>=aspdat.orgw*/){ *srch = fith; *srcw = tmpw; }else{