diff --git a/libvo/vo_dfbmga.c b/libvo/vo_dfbmga.c index c0b187be0d..74dfa207dd 100644 --- a/libvo/vo_dfbmga.c +++ b/libvo/vo_dfbmga.c @@ -138,8 +138,13 @@ pixelformat_name( DFBSurfacePixelFormat format ) return "RGB24"; case DSPF_RGB16: return "RGB16"; +#if DIRECTFBVERSION > 915 + case DSPF_ARGB1555: + return "ARGB1555"; +#else case DSPF_RGB15: return "RGB15"; +#endif case DSPF_YUY2: return "YUY2"; case DSPF_UYVY: @@ -170,7 +175,11 @@ imgfmt_to_pixelformat( uint32_t format ) return DSPF_RGB16; case IMGFMT_RGB15: case IMGFMT_BGR15: +#if DIRECTFBVERSION > 915 + return DSPF_ARGB1555; +#else return DSPF_RGB15; +#endif case IMGFMT_YUY2: return DSPF_YUY2; case IMGFMT_UYVY: @@ -539,7 +548,11 @@ draw_alpha( int x0, int y0, ((uint8_t *) dst) + pitch * y0 + subframe_pixel_size * x0, pitch ); break; +#if DIRECTFBVERSION > 915 + case DSPF_ARGB1555: +#else case DSPF_RGB15: +#endif vo_draw_alpha_rgb15( w, h, src, srca, stride, ((uint8_t *) dst) + pitch * y0 + subframe_pixel_size * x0, pitch ); diff --git a/libvo/vo_directfb2.c b/libvo/vo_directfb2.c index 69dafe5d63..75c10b2ce5 100644 --- a/libvo/vo_directfb2.c +++ b/libvo/vo_directfb2.c @@ -262,8 +262,13 @@ DFBSurfacePixelFormat convformat(uint32_t format) case IMGFMT_BGR24: return DSPF_RGB24; break; case IMGFMT_RGB16: return DSPF_RGB16; break; case IMGFMT_BGR16: return DSPF_RGB16; break; +#if DIRECTFBVERSION > 915 + case IMGFMT_RGB15: return DSPF_ARGB1555; break; + case IMGFMT_BGR15: return DSPF_ARGB1555; break; +#else case IMGFMT_RGB15: return DSPF_RGB15; break; case IMGFMT_BGR15: return DSPF_RGB15; break; +#endif case IMGFMT_YUY2: return DSPF_YUY2; break; case IMGFMT_UYVY: return DSPF_UYVY; break; case IMGFMT_YV12: return DSPF_YV12; break; @@ -1209,8 +1214,11 @@ static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src, case DSPF_RGB16: vo_draw_alpha_rgb16(w,h,src,srca,stride,((uint8_t *) dst)+pitch*y0 + 2*x0,pitch); break; - +#if DIRECTFBVERSION > 915 + case DSPF_ARGB1555: +#else case DSPF_RGB15: +#endif vo_draw_alpha_rgb15(w,h,src,srca,stride,((uint8_t *) dst)+pitch*y0 + 2*x0,pitch); break;