- Fixed: With hardware 2D, the console and menu need not reimplement palette

flashes to ensure their visibility.
- Fixed: DFlashFader::Destroy() did not call its super method.


SVN r985 (trunk)
This commit is contained in:
Randy Heit 2008-05-21 01:47:34 +00:00
parent 34f6aa8ad3
commit befdd0b41f
5 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,7 @@
May 20, 2008
- Fixed: With hardware 2D, the console and menu need not reimplement palette
flashes to ensure their visibility.
- Fixed: DFlashFader::Destroy() did not call its super method.
- Fixed: If a player was morphed into a class with a taller view height,
their perceived view height would not change until they walked up a step.

View file

@ -1206,7 +1206,7 @@ void C_DrawConsole (bool hw2d)
}
// Apply palette blend effects
if (StatusBar != NULL)
if (StatusBar != NULL && !hw2d)
{
player_t *player = StatusBar->CPlayer;
if (player->camera != NULL && player->camera->player != NULL)

View file

@ -22,6 +22,7 @@ DFlashFader::DFlashFader (float r1, float g1, float b1, float a1,
void DFlashFader::Destroy ()
{
SetBlend (1.f);
Super::Destroy();
}
void DFlashFader::Serialize (FArchive &arc)

View file

@ -1478,7 +1478,7 @@ void DBaseStatusBar::BlendView (float blend[4])
AddBlend (0.25f, 0.25f, 0.853f, 0.4f, blend);
}
if (CPlayer->camera != NULL && menuactive == MENU_Off && ConsoleState == c_up)
if (screen->Accel2D || (CPlayer->camera != NULL && menuactive == MENU_Off && ConsoleState == c_up))
{
player_t *player = (CPlayer->camera->player != NULL) ? CPlayer->camera->player : CPlayer;
AddBlend (player->BlendR, player->BlendG, player->BlendB, player->BlendA, blend);

View file

@ -3136,7 +3136,7 @@ void M_Drawer ()
PalEntry fade = 0;
const player_t *player = &players[consoleplayer];
if (player->camera != NULL && (gamestate == GS_LEVEL || gamestate == GS_TITLELEVEL))
if (!screen->Accel2D && player->camera != NULL && (gamestate == GS_LEVEL || gamestate == GS_TITLELEVEL))
{
if (player->camera->player != NULL)
{