From 1e118264336cb7a29426aeca134386ebc177ac2f Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 21 Aug 2009 18:19:16 -0700 Subject: [PATCH] fix a bug with RGBX_8888 surfaces would be rendered incorrectly by the MDP. --- libcopybit/copybit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index cb17de2..bd548a1 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -106,7 +106,7 @@ static void intersect(struct copybit_rect_t *out, static int get_format(int format) { switch (format) { case COPYBIT_FORMAT_RGB_565: return MDP_RGB_565; - case COPYBIT_FORMAT_RGBX_8888: return MDP_XRGB_8888; // currently wrong + case COPYBIT_FORMAT_RGBX_8888: return MDP_RGBX_8888; case COPYBIT_FORMAT_RGB_888: return MDP_RGB_888; case COPYBIT_FORMAT_RGBA_8888: return MDP_RGBA_8888; case COPYBIT_FORMAT_BGRA_8888: return MDP_BGRA_8888;