fix a bug with RGBX_8888 surfaces would be rendered incorrectly by the MDP.

This commit is contained in:
Mathias Agopian 2009-08-21 18:19:16 -07:00
parent 717cf60b7a
commit 1e11826433

View File

@ -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;