d3d9: Add a sRGB format test
Henri Verbeet
hverbeet at gmail.com
Mon Sep 27 05:24:01 CDT 2010
On 25 September 2010 23:45, Stefan Dösinger <stefan at codeweavers.com> wrote:
> + struct
> + {
> + D3DFORMAT fmt;
> + const char *name;
> + }
> + formats[] =
> + {
> + { D3DFMT_R5G6B5, "D3DFMT_R5G6B5" },
> + { D3DFMT_X8R8G8B8, "D3DFMT_X8R8G8B8" },
> + { D3DFMT_A8R8G8B8, "D3DFMT_A8R8G8B8" },
> + { D3DFMT_A16B16G16R16F, "D3DFMT_A16B16G16R16F" },
> + { D3DFMT_A32B32G32R32F, "D3DFMT_A32B32G32R32F" },
> + };
This should be static const. I recently fixed a number of these.
> + const float quad[] = {
> + -1.0, -1.0, 0.1, 0.0, 0.0,
> + -1.0, 1.0, 0.1, 1.0, 0.0,
> + 1.0, -1.0, 0.1, 0.0, 1.0,
> + 1.0, 1.0, 0.1, 1.0, 1.0
> + };
Please use a proper structure?
More information about the wine-devel
mailing list