comparison libvo/aspect.c @ 20765:dd41a1fc9000

MSGTRs for libvo/aspect.c and libvo/vo_xv.c
author kraymer
date Wed, 08 Nov 2006 14:55:37 +0000
parents a107276371a8
children 7753555efb15
comparison
equal deleted inserted replaced
20764:62bb5a46fdcb 20765:dd41a1fc9000
1 /* Stuff for correct aspect scaling. */ 1 /* Stuff for correct aspect scaling. */
2 #include "aspect.h" 2 #include "aspect.h"
3 #include "geometry.h" 3 #include "geometry.h"
4 //#ifndef ASPECT_TEST 4 //#ifndef ASPECT_TEST
5 #include "mp_msg.h" 5 #include "mp_msg.h"
6 #include "help_mp.h"
6 //#endif 7 //#endif
7 8
8 //#define ASPECT_DEBUG 9 //#define ASPECT_DEBUG
9 10
10 #if defined(ASPECT_DEBUG) || defined(ASPECT_TEST) 11 #if defined(ASPECT_DEBUG) || defined(ASPECT_TEST)
101 if(tmpw<=aspdat.scrw /*&& tmpw>=aspdat.orgw*/){ 102 if(tmpw<=aspdat.scrw /*&& tmpw>=aspdat.orgw*/){
102 *srch = zoom?aspdat.scrh:aspdat.preh; 103 *srch = zoom?aspdat.scrh:aspdat.preh;
103 *srcw = tmpw; 104 *srcw = tmpw;
104 }else{ 105 }else{
105 #ifndef ASPECT_TEST 106 #ifndef ASPECT_TEST
106 mp_msg(MSGT_VO,MSGL_WARN,"aspect: Warning: no suitable new res found!\n"); 107 mp_msg(MSGT_VO,MSGL_WARN,MSGTR_LIBVO_ASPECT_NoSuitableNewResFound);
107 #else 108 #else
108 mp_msg(MSGT_VO,MSGL_WARN,"error: no new size found that fits into res!\n"); 109 mp_msg(MSGT_VO,MSGL_WARN,MSGTR_LIBVO_ASPECT_NoNewSizeFoundThatFitsIntoRes);
109 #endif 110 #endif
110 } 111 }
111 } 112 }
112 aspdat.asp=*srcw / (float)*srch; 113 aspdat.asp=*srcw / (float)*srch;
113 #ifdef ASPECT_DEBUG 114 #ifdef ASPECT_DEBUG