http://bugs.winehq.org/show_bug.cgi?id=16559
--- Comment #29 from Andrew Church wine@achurch.org 2009-07-02 01:52:10 --- I'm afraid I'm a bit too busy to look into Trickstyle at the moment, but as far as the patch goes, I looked around the DirectX SDKs and did a bit of Googling to figure out how the three formats are used. In case you want to look into it yourself, it's basically just a matter of counting bits -- for example, R8G8B8A8 breaks down as:
8 bits of R (red): bits 0-7 = 0x000000FF 8 bits of G (green): bits 8-15 = 0x0000FF00 8 bits of B (blue): bits 16-23 = 0x00FF0000 8 bits of A (alpha): bits 24-31 = 0xFF000000
The trick is figuring out what all the different letters mean and how they correlate to DDPixelFormat structure fields -- I'm no 3D expert either, and things like Q and W stump me.