comparison libvo/vo_x11.c @ 2274:9ee34c6950e0

xinc scaled by 16 instead of 8
author arpi
date Fri, 19 Oct 2001 02:21:47 +0000
parents 36fa77e785d4
children 50037e53d0bc
comparison
equal deleted inserted replaced
2273:e407fc4562f1 2274:9ee34c6950e0
176 // software scale 176 // software scale
177 if(fullscreen){ 177 if(fullscreen){
178 image_width=vo_screenwidth; 178 image_width=vo_screenwidth;
179 image_height=vo_screenheight; 179 image_height=vo_screenheight;
180 } else { 180 } else {
181 image_width=d_width&(~3); 181 image_width=d_width&(~7);
182 image_height=d_height; 182 image_height=d_height;
183 } 183 }
184 scale_xinc=(width << 8) / image_width - 1; // -1 needed for proper rounding 184 scale_xinc=(width << 16) / image_width - 2; // needed for proper rounding
185 scale_yinc=(height << 16) / image_height; 185 scale_yinc=(height << 16) / image_height +2;
186 SwScale_Init(); 186 SwScale_Init();
187 } 187 }
188 188
189 #ifdef HAVE_NEW_GUI 189 #ifdef HAVE_NEW_GUI
190 if ( vo_window != None ) { mywindow=vo_window; mygc=vo_gc; } 190 if ( vo_window != None ) { mywindow=vo_window; mygc=vo_gc; }