comparison libvo/vo_svga.c @ 712:ea093aa3ecae

-bpp bug fixed.
author se7encode
date Sun, 06 May 2001 19:38:57 +0000
parents b623949ddedb
children 83919c1b9924
comparison
equal deleted inserted replaced
711:d73d1b2a565a 712:ea093aa3ecae
375 return(0); 375 return(0);
376 } 376 }
377 377
378 // if (vo_dbpp) => There is NO conversion!!! 378 // if (vo_dbpp) => There is NO conversion!!!
379 if (vo_dbpp) { 379 if (vo_dbpp) {
380 if (format == IMGFMT_YV12) return (1);
380 switch (vo_dbpp) { 381 switch (vo_dbpp) {
381 case 32: if ((format == IMGFMT_RGB32) || (format == IMGFMT_BGR32)) 382 case 32: if ((format == IMGFMT_RGB32) || (format == IMGFMT_BGR32))
382 return ((bpp_avail & BPP_32) ? 1 : 0); 383 return ((bpp_avail & BPP_32) ? 1 : 0);
383 break; 384 break;
384 case 24: if ((format == IMGFMT_RGB24) || (format == IMGFMT_BGR24)) 385 case 24: if ((format == IMGFMT_RGB24) || (format == IMGFMT_BGR24))