mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- Fix an ICE when compiling with GCC 4.5.0.
SVN r2659 (trunk)
This commit is contained in:
parent
230178bf98
commit
4b817cfd8b
1 changed files with 7 additions and 7 deletions
|
@ -656,23 +656,23 @@ FHexenStartupScreen::FHexenStartupScreen(int max_progress, HRESULT &hr)
|
|||
{
|
||||
RGBQUAD color;
|
||||
DWORD quad;
|
||||
};
|
||||
} c;
|
||||
|
||||
Wads.ReadLump (startup_lump, startup_screen);
|
||||
|
||||
color.rgbReserved = 0;
|
||||
c.color.rgbReserved = 0;
|
||||
|
||||
StartupBitmap = ST_Util_CreateBitmap (640, 480, 4);
|
||||
|
||||
// Initialize the bitmap palette.
|
||||
for (int i = 0; i < 16; ++i)
|
||||
{
|
||||
color.rgbRed = startup_screen[i*3+0];
|
||||
color.rgbGreen = startup_screen[i*3+1];
|
||||
color.rgbBlue = startup_screen[i*3+2];
|
||||
c.color.rgbRed = startup_screen[i*3+0];
|
||||
c.color.rgbGreen = startup_screen[i*3+1];
|
||||
c.color.rgbBlue = startup_screen[i*3+2];
|
||||
// Convert from 6-bit per component to 8-bit per component.
|
||||
quad = (quad << 2) | ((quad >> 4) & 0x03030303);
|
||||
StartupBitmap->bmiColors[i] = color;
|
||||
c.quad = (c.quad << 2) | ((c.quad >> 4) & 0x03030303);
|
||||
StartupBitmap->bmiColors[i] = c.color;
|
||||
}
|
||||
|
||||
// Fill in the bitmap data. Convert to chunky, because I can't figure out
|
||||
|
|
Loading…
Reference in a new issue