diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-10-28 01:55:11 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | 7ef81cbc6e162f1fcced6b294f6a4cf880152aa4 (patch) | |
| tree | 62dfa167d79a31b1c54b1fc27d1d8bab2b4c76d3 /src/win95/awtexld.cpp | |
| parent | ea23e5a1bbfa4109c3eae664b70268cb45ca48cc (diff) | |
More work on menus.
Diffstat (limited to 'src/win95/awtexld.cpp')
| -rw-r--r-- | src/win95/awtexld.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/win95/awtexld.cpp b/src/win95/awtexld.cpp index eb2a34d..3394374 100644 --- a/src/win95/awtexld.cpp +++ b/src/win95/awtexld.cpp @@ -2149,6 +2149,20 @@ DDSurface * AwCreateSurface(char const * _argFormatS, ...) using namespace AwTl; + /* Just convert the texture to 32bpp */ + pixelFormat.palettizedB = 0; + + pixelFormat.alphaB = 1; + pixelFormat.validB = 1; + pixelFormat.bitsPerPixel = 32; + pixelFormat.redLeftShift = 0; + pixelFormat.greenLeftShift = 8; + pixelFormat.blueLeftShift = 16; + pixelFormat.redRightShift = 0; + pixelFormat.greenRightShift = 0; + pixelFormat.blueRightShift = 0; + pixelFormat.dwRGBAlphaBitMask = 0xFF000000; + va_list ap; va_start(ap,_argFormatS); CreateTextureParms parms; |
