From 7ef81cbc6e162f1fcced6b294f6a4cf880152aa4 Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sun, 28 Oct 2001 01:55:11 +0000 Subject: More work on menus. --- src/win95/awtexld.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/win95/awtexld.cpp') 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; -- cgit v1.3