Module: wine Branch: master Commit: 4cd5298a57993794adcb6c9bb4af6e1d755275c9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4cd5298a57993794adcb6c9bb4...
Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Sat Aug 11 16:47:47 2007 +0200
wined3d: Add more pixelformats to getColorBits.
---
dlls/wined3d/utils.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index c66c381..84af4ee 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -2486,8 +2486,16 @@ BOOL getColorBits(WINED3DFORMAT fmt, short *redSize, short *greenSize, short *bl TRACE("fmt: %s\n", debug_d3dformat(fmt)); switch(fmt) { - case WINED3DFMT_R5G6B5: case WINED3DFMT_X8R8G8B8: + case WINED3DFMT_R8G8B8: + case WINED3DFMT_A8R8G8B8: + case WINED3DFMT_A2R10G10B10: + case WINED3DFMT_X1R5G5B5: + case WINED3DFMT_A1R5G5B5: + case WINED3DFMT_R5G6B5: + case WINED3DFMT_R3G3B2: + case WINED3DFMT_A8P8: + case WINED3DFMT_P8: break; default: ERR("Unsupported format: %s\n", debug_d3dformat(fmt));