diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-12-02 16:20:34 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-12-06 23:24:24 +0200 |
commit | 8724af248cd6c93182fecd060fed09a556361080 (patch) | |
tree | ccc88473a0334b43b8d6e70875707eb7324e8c72 | |
parent | 2f0a800ffdc881cdb3adf84f1ed97bbb63cba34c (diff) |
kdrive/mga: fix compiler warning
Change a case that only made one test for an if, preventing the compiler
warning about all other PICT_* types being unsupported.
-rw-r--r-- | hw/kdrive/mga/g400_composite.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/kdrive/mga/g400_composite.c b/hw/kdrive/mga/g400_composite.c index 671e517fb..da2e8b810 100644 --- a/hw/kdrive/mga/g400_composite.c +++ b/hw/kdrive/mga/g400_composite.c @@ -286,10 +286,8 @@ mgaCheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture, if (pMaskPicture->componentAlpha) MGA_FALLBACK(("Component alpha unsupported")); - switch (pDstPicture->format) { - case PICT_a8: + if (pDstPicture->format == PICT_a8) MGA_FALLBACK(("render to A8 unsupported")); - } return TRUE; } |