comparison libvo/vo_xvidix.c @ 5043:0700ce9958d2

Fixed default background color for proper color key usage
author nick
date Mon, 11 Mar 2002 08:48:06 +0000
parents bfc652fc7f43
children ccf1be6ccf5e
comparison
equal deleted inserted replaced
5042:75e4f695f204 5043:0700ce9958d2
294 if ((window_depth != 15) && (window_depth != 16) && (window_depth != 24) 294 if ((window_depth != 15) && (window_depth != 16) && (window_depth != 24)
295 && (window_depth != 32)) 295 && (window_depth != 32))
296 window_depth = 24; 296 window_depth = 24;
297 XMatchVisualInfo(mDisplay, mScreen, window_depth, TrueColor, &vinfo); 297 XMatchVisualInfo(mDisplay, mScreen, window_depth, TrueColor, &vinfo);
298 298
299 xswa.background_pixel = BlackPixel(mDisplay, mScreen); 299 xswa.background_pixel = fgColor; //BlackPixel(mDisplay, mScreen);
300 xswa.border_pixel = 0; 300 xswa.border_pixel = 0;
301 xswa.colormap = XCreateColormap(mDisplay, RootWindow(mDisplay, mScreen), 301 xswa.colormap = XCreateColormap(mDisplay, RootWindow(mDisplay, mScreen),
302 vinfo.visual, AllocNone); 302 vinfo.visual, AllocNone);
303 xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask; 303 xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask;
304 xswamask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; 304 xswamask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;