comparison libvo/vo_xvidix.c @ 4194:37c35f4ef9e2

Fixed resize bug.
author nick
date Wed, 16 Jan 2002 09:18:43 +0000
parents 7134f727e3c6
children 7e2bf04c9a7c
comparison
equal deleted inserted replaced
4193:ae28646a3568 4194:37c35f4ef9e2
72 drwcX, drwcY, drwX, drwY, drwWidth, drwHeight); 72 drwcX, drwcY, drwX, drwY, drwWidth, drwHeight);
73 73
74 if ((window_x != drwcX) || (window_y != drwcY) || 74 if ((window_x != drwcX) || (window_y != drwcY) ||
75 (window_width != drwWidth) || (window_height != drwHeight)) 75 (window_width != drwWidth) || (window_height != drwHeight))
76 { 76 {
77 window_x = drwcX;
78 window_y = drwcY;
79 window_width = drwWidth;
80 window_height = drwHeight;
77 /* FIXME: implement runtime resize/move if possible, this way is very ugly! */ 81 /* FIXME: implement runtime resize/move if possible, this way is very ugly! */
78 vidix_term(); 82 vidix_term();
79 vidix_preinit(vidix_name, &video_out_xvidix); 83 vidix_preinit(vidix_name, &video_out_xvidix);
80 if (vidix_init(image_width, image_height, window_x, window_y, 84 if (vidix_init(image_width, image_height, window_x, window_y,
81 window_width, window_height, image_format, vo_depthonscreen, vo_screenwidth, vo_screenheight) != 0) 85 window_width, window_height, image_format, vo_depthonscreen, vo_screenwidth, vo_screenheight) != 0)
88 x = window_width; 92 x = window_width;
89 y = window_height; 93 y = window_height;
90 } 94 }
91 } 95 }
92 96
93 window_x = drwcX;
94 window_y = drwcY;
95 window_width = drwWidth;
96 window_height = drwHeight;
97
98 mp_msg(MSGT_VO, MSGL_INFO, "[xvidix] window properties: pos: %dx%d, size: %dx%d\n", 97 mp_msg(MSGT_VO, MSGL_INFO, "[xvidix] window properties: pos: %dx%d, size: %dx%d\n",
99 window_x, window_y, window_width, window_height); 98 window_x, window_y, window_width, window_height);
100 99
101 return; 100 return;
102 } 101 }